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 you need.

However, I just tried a little test.  I renamed my App Support folder
then did this:

NSSearchPathForDirectoriesInDomains (
  NSApplicationSupportDirectory,
                NSUserDomainMask, YES);

It just returned the path, but did not create the folder.

This is in contrast to FSFindFolder() which can optionally (attempt to)
create the folder for you.

So although unlikely, be prepared for the folder to not exist.

--
____________________________________________________________
Sean McBride, B. Eng                 s...@rogue-research.com
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to