• 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: Where/how to store lots of user application data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Where/how to store lots of user application data


  • Subject: Re: Where/how to store lots of user application data
  • From: John Stiles <email@hidden>
  • Date: Fri, 13 May 2005 11:50:46 -0700

On May 13, 2005, at 11:52 AM, Chris Parker wrote:


On May 13, 2005, at 11:43 AM, John Stiles wrote:

Neat, I didn't know about that API.

NSApplicationSupportDirectory
Location of application support files (Library/Application Support). Available in Mac OS X v10.4 and later.

If you don't mind requiring Tiger, this is the way to go.
If you want to support older OSes, I guess FSFindFolder is the way to go...

That's not completely accurate, John. :)

The API is available a long way back. It's just this particular constant that's new to Tiger. You can elect to just find the Library/ on Panther and earlier and append "Application Support" to it - we can't move it on Panther or earlier, so this is safer than hardcoding a path now-and-forever for the future. On Tiger, use the constant to find the AppSupport directory inside the Library/ directory.

True... I didn't think of doing it that way. I usually try to avoid writing code which depends on the OS version, but in this case it is probably easier than trying to shoehorn a Carbon call into Java. (Again, something I don't know a lot about, but it doesn't sound easy!)
 
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: Where/how to store lots of user application data (From: Bruce Truax <email@hidden>)
 >Re: Where/how to store lots of user application data (From: John Stiles <email@hidden>)
 >Re: Where/how to store lots of user application data (From: Chris Parker <email@hidden>)
 >Re: Where/how to store lots of user application data (From: Chris Parker <email@hidden>)

  • Prev by Date: Re: Where/how to store lots of user application data
  • Next by Date: NSArrayController, CoreData and bindings
  • Previous by thread: Re: Where/how to store lots of user application data
  • Next by thread: Re: Where/how to store lots of user application data
  • Index(es):
    • Date
    • Thread