• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Creating localized directories
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating localized directories


  • Subject: Re: Creating localized directories
  • From: "Sean McBride" <email@hidden>
  • Date: Mon, 19 Mar 2007 16:39:10 -0400
  • Organization: Rogue Research

On 2007-03-19 15:09, Michael Watson said:

>Well, the NSApplicationSupportDirectory constant is just an integer,
>and won't tell me what the name of the directory is supposed to be,
>to create it if necessary.

True.  I would argue the Foundation APIs are weak in this area, and have
been for a while, after all NSApplicationSupportDirectory was only just added.

>The app launches and looks for its support directory. If it's not
>found, we want to create it, but before we do that, we want to make
>sure the Application Support directory exists. If not, we need to
>create it. If it's not there, I don't know what it's supposed to be
>named, so I can't create it.
>
>Looks like the only function that will handle this is FSFindFolder,
>as it knows what the directory is supposed to be named before
>creating it.

Yup!

>Is that mechanism exposed anywhere else?

You mean in Foundation somewhere?  I'd don't think so.  Why not just use
FSFindFolder?  Sure, it's a C API, but so is
NSSearchPathForDirectoriesInDomain().

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


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

References: 
 >Creating localized directories (From: Michael Watson <email@hidden>)
 >Re: Creating localized directories (From: Andreas Mayer <email@hidden>)
 >Re: Creating localized directories (From: Michael Watson <email@hidden>)
 >Re: Creating localized directories (From: Andreas Mayer <email@hidden>)
 >Re: Creating localized directories (From: Michael Watson <email@hidden>)

  • Prev by Date: Re: NSDatePicker behaviour is odd when typing date
  • Next by Date: Standard "combo" button class?
  • Previous by thread: Re: Creating localized directories
  • Next by thread: Re: Creating localized directories
  • Index(es):
    • Date
    • Thread