Featured Member Applications

TanZen ($0.99)

Air Hockey ($0.99)

Forex On The Go Lite (FREE)

Cams Ahoy! Europe ($0.99)

Cams Ahoy! North America ($0.99)

Air Mouse ($5.99)

Internet Radio Box ($2.99)

Photoshop Pirate Guide ($10.99)

Oog & Gappo In The Kitchen ($2.99)

Chess Player ($3.99)

Candy Hearts ($0.99)

Want your application to be advertised here?

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

» Site Navigation
» Home
» 360iDev Conference
Looking for an iPhone conference?



iPhone Dev SDK will be there and we're hoping to see you there!

360|iDev
San Jose, CA
March 2-4, 2009
Tickets on sale now!
» 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!



App Fiend is a simple and efficient way to keep track of what iPhone and iPod Touch Apps your friends are using (or have used), and what they think about them.
» Stats
Members: 5,181
Threads: 7,638
Posts: 32,193
Top Poster: RickMaddy (925)
Welcome to our newest member, NJheadhunter
Reply
 
LinkBack Thread Tools Display Modes
Old 08-27-2008, 09:17 AM   #1 (permalink)
Junior Member
 
Join Date: Aug 2008
Posts: 10
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: 804
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: 10
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

Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 04:00 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Owned and Operated by 913solutions, LLC, ©2008 - 2009