Re: Path to preference folder
Re: Path to preference folder
- Subject: Re: Path to preference folder
- From: Kyle Sluder <email@hidden>
- Date: Fri, 26 Mar 2010 09:09:16 -0700
On Mar 26, 2010, at 1:54 AM, Nikhil Khandelwal <email@hidden
> wrote:
I want to get the path of /User/library/Preference to put the plist
file over there. For getting the path I am using
NSSearchPathForDirectoriesInDomains(NSLibraryDirectory,
NSUserDomainMask, YES) which gives me path to library. Is there
anything which gives me directly path to Preference folder instead
of appending it to Library path.
NSUserDefaults (and CFPreferences) already does this for you. You
should not do this yourself.
--Kyle Sluder
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden