Re: Get path to user preference folder, problem solved!
Re: Get path to user preference folder, problem solved!
- Subject: Re: Get path to user preference folder, problem solved!
- From: Ali Ozer <email@hidden>
- Date: Sun, 16 Feb 2003 13:38:33 -0800
On Saturday, February 15, 2003, at 02:41 PM, Daniel Aarno wrote:
Still I find it a bit strange that there is not a higher level API
for doing this kind of things, at least it should be a part of CF so
as to remove the need for Carbon, but this is only my thoughts.
As pointed out most things depend on Carbon in one way or another...
I do agree it would be nice to have a Cocoa interface to this
functionality and sensibly so for CF as well. It is just the better
thing to do API wise.
You can use the NSSearchPathForDirectoriesInDomains() function in
Foundation/NSPathUtilities.h, then append the path component
"Preferences" to the result. This function doesn't have selectors for
folders below Library. Or, instead of putting stuff in Preferences, if
appropriate you can choose one of the other subfolders, or your own, in
~/Library.
Ali
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.