• 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: OSX equivalent of Registry Keys?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OSX equivalent of Registry Keys?


  • Subject: Re: OSX equivalent of Registry Keys?
  • From: Sherm Pendley <email@hidden>
  • Date: Thu, 12 Apr 2007 04:19:27 -0400

On Apr 12, 2007, at 4:07 AM, Neil Bradley wrote:

I will just preface my question by saying that I am a complete novice to
developing with Cocoa.


We have a current solution to allow staff to gain Remote Access to their
emails and data via Citrix. I created an Installer using NSIS for Windows
users that would basically install Registry Keys providing the user with
part of the required authentication.


However, we have since been asked if we could offer a Mac version. As I am a
Mac user myself, I was also keen to get this running. I wondered if someone
could tell me what the equivalent is in OS X to store the same data that is
held in the Windows Registry Keys? Or even if this is possible.


As far as I could figure myself, I was thinking that this would need to be
stored in the current user Preferences folder.

Close - you'll want to use NSUserDefaults, which does in fact store its data in ~/Library/Preferences. But, the location and format of the stored data is an implementation detail you shouldn't need to worry about. (Just like on Windows, where you go through an API to get/set registry keys, rather than having to know anything about how and where they're being stored.)


Have a look at:

<file:///Developer/ADC Reference Library/documentation/Cocoa/ Conceptual/UserDefaults/index.html>

Or online:

<http://developer.apple.com/documentation/Cocoa/Conceptual/ UserDefaults/index.html>

sherm--

Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: 
 >OSX equivalent of Registry Keys? (From: "Neil Bradley" <email@hidden>)

  • Prev by Date: Re: OSX equivalent of Registry Keys?
  • Next by Date: Re: OSX equivalent of Registry Keys?
  • Previous by thread: Re: OSX equivalent of Registry Keys?
  • Next by thread: Re: OSX equivalent of Registry Keys?
  • Index(es):
    • Date
    • Thread