• 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: Path to preference folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Path to preference folder (From: Nikhil Khandelwal <email@hidden>)

  • Prev by Date: Re: NSXML Parsing Problem
  • Next by Date: How to catch modal window appearance?
  • Previous by thread: Path to preference folder
  • Next by thread: Previous ShutDown Message : 3 received
  • Index(es):
    • Date
    • Thread