Go Back   iPhone Dev SDK Forum > Development Forums > iPhone SDK Development

Featured Member Applications

TanZen ($0.99)

Endless Walls ($0.99)

Air Hockey ($0.99)

SUPER STRIKE - Motion Bowl ($0.99)

BarSlot ($0.99)

MeterRead ($0.99)

Colorblind Helper ($4.99)

gContacts ($1.99)

ProgCalc ($1.99)

Forex On The Go Lite (FREE)

HUE knewit! ($0.99)

Want your application to be advertised here?

» Advertisements


Visit our friends over at The App Show! Steve and Dave produce a weekly show shining a light on the iPhone 2.0 software and the applications being developed by the amazing development community for the iPhone SDK!
» Online Users: 90
11 members and 79 guests
Akemim, audibles, backwardselvis, FetaBoy, futurejones, jclardy, jeff_lamarche, noobAppDeveloper, SkylarEC, smith288, wuf810
Most users ever online was 207, 10-24-2008 at 09:29 AM.
» Stats
Members: 3,917
Threads: 5,628
Posts: 23,290
Top Poster: scottiphone (705)
Welcome to our newest member, mef
Reply
 
LinkBack Thread Tools Display Modes
Old 08-27-2008, 09:17 AM   #1 (permalink)
Junior Member
 
Join Date: Aug 2008
Posts: 6
Default "Application Support" folder missing in app directory path

HI All

i am trying to access application Directory through this snippet

NSArray *dirs = NSSearchPathForDirectoriesInDomains(NSApplicationS upportDirectory, NSUserDomainMask, YES);
NSString *appSupportFolderPath = [dirs objectAtIndex:0];
NSString *ourAppDirectoryName = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleExecutable"];
ourAppDirectoryPath = [[NSString alloc] initWithString:[appSupportFolderPath stringByAppendingPathComponenturAppDirectoryName]];
NSLog(ourAppDirectoryPath);

Out Put
/Users/rajusb/Library/Application Support/iPhone Simulator/User/Applications/9552F49E-7506-4E33-81C1-8B2A1B6AE850/Library/Application Support/AEMSample


after running application on simulator i explored "Library" folder and i found that "Application Support" Directory was missing.

my question is whether i have to create "Application Support" and its sub folder "AEMSample"(Application Name) manually or is it an issue with an iphone simulator?
vashek is offline   Reply With Quote
Old 08-27-2008, 02:23 PM   #2 (permalink)
Senior Member
 
Join Date: Apr 2008
Posts: 705
Default

There is no Application support folder on the iPhone. There's the main bundle of the app and then you have a document and tmp folders.
Check page 76 of the iphone Programming Guide for directories and paths.
scottiphone is offline   Reply With Quote
Old 08-29-2008, 04:29 AM   #3 (permalink)
Junior Member
 
Join Date: Aug 2008
Posts: 6
Default Thanks scottiphone

scottiphone,

Thanks for the hint,

now i am using 'document' folder to store all the files.

Code:
NSArray* paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString* documentsDirectory = [paths objectAtIndex: 0];
Vashek
vashek is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Powered by vBadvanced CMPS v3.0.1

All times are GMT -5. The time now is 07:58 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0