Re: Creating an Application Support folder

2010-02-13 Thread Sean McBride
Ken Thomases (k...@codeweavers.com) on 2010-02-13 08:58 said: >If you're targeting Snow Leopard or later, the new recommended routines are: > >-[NSFileManager URLForDirectory:inDomain:appropriateForURL:create:error:] >-[NSFileManager URLsForDirectory:inDomains:] > >The former can be told to create

Re: Creating an Application Support folder

2010-02-13 Thread Ken Thomases
On Feb 12, 2010, at 10:17 AM, Sean McBride wrote: > On 2/10/10 10:44 PM, Paul Johnson said: > >> I'm trying to find a best way to create the Application Support >> folder. I'm rather new at Cocoa so it's taking me a while to do even >> this simple thing. > > Since you're new to Cocoa, I'm guessi

Re: Creating an Application Support folder

2010-02-12 Thread Sean McBride
On 2/10/10 10:44 PM, Paul Johnson said: >I'm trying to find a best way to create the Application Support >folder. I'm rather new at Cocoa so it's taking me a while to do even >this simple thing. Since you're new to Cocoa, I'm guessing all the other replies have probably provided the real answers

Re: Creating an Application Support folder

2010-02-11 Thread Graham Cox
On 12/02/2010, at 3:23 PM, Graham Cox wrote: > That folder can be found using NSApplicationSupportDirectory Scratch that - this returns the /Library/Application Support, not ~/Library/Application Support Gideon's right - use NSSearchPathForDirectoriesInDomains() --Graham __

Re: Creating an Application Support folder

2010-02-11 Thread Fritz Anderson
On 10 Feb 2010, at 9:44 PM, Paul Johnson wrote: > I have a function "- (NSString *)applicationSupportFolder" that > returns the desired folder name, properly localized. I call this > function and then use NSFileManager to check for the existence of the > folder. Because there can be a file (NOT a

Re: Creating an Application Support folder

2010-02-11 Thread Graham Cox
On 11/02/2010, at 2:44 PM, Paul Johnson wrote: > I'm trying to find a best way to create the Application Support > folder. I'm rather new at Cocoa so it's taking me a while to do even > this simple thing. I'm also interested in ensuring my application can > be localized easily. > > I have a func

Re: Creating an Application Support folder

2010-02-11 Thread Gideon King
Hi Paul Firstly, are you using the NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory, NSUserDomainMask, YES); function to find the application support folder? That would get you the base path, then you can use the stringByAppendingPathComponent: method to add your folder nam

Creating an Application Support folder

2010-02-11 Thread Paul Johnson
I'm trying to find a best way to create the Application Support folder. I'm rather new at Cocoa so it's taking me a while to do even this simple thing. I'm also interested in ensuring my application can be localized easily. I have a function "- (NSString *)applicationSupportFolder" that returns th