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.