Re: Preferences
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.