• 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: Preferences
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Preferences


  • Subject: Re: Preferences
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Thu, 29 Jan 2004 20:47:50 +0100

I'm having problems writing a preference module for my application, I've
looked at the CFPreferences.c example and can't seem to get it to work for me.

I think what you're really looking for is probably NSUserDefaults. If you just have a few preferences, just create an NSPanel, put the checkboxes etc. onto that and hook it up to the Preferences menu item.

You'll also need to write a little controller/delegate class that listens for changes in that window and saves them to the NSUserDefaults, but if you've gotten your head around the new NSController family of classes, you can probably use one of those and hook it up to the user defaults instead. As long as you have Mac OS 10.3 or better, that is.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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.
References: 
 >Preferences (From: email@hidden)
 >Re: Preferences (From: Yann Bizeul <email@hidden>)

  • Prev by Date: MVC and multiple tables
  • Next by Date: Re: Doe each NSTableView requires its own controller?
  • Previous by thread: Re: Preferences
  • Next by thread: Rendezvous, Distributed Objects, Port selection, IP/OOP asymmetry
  • Index(es):
    • Date
    • Thread