Re: mmalc's Controller examples
Re: mmalc's Controller examples
- Subject: Re: mmalc's Controller examples
- From: mmalcolm crawford <email@hidden>
- Date: Mon, 1 Mar 2004 02:46:25 -0800
One more:
<
http://homepage.mac.com/mmalc/CocoaExamples/ControlledPreferences.zip>
Uses NSUserDefaultsController to manage a number of preferences -- a
string, a number, a color, and a font. The combination is displayed as
a preview. To be stored in user defaults, the color must be archived;
a standard value transformer is used to archive and unarchive the
color. The font information is stored as a pair of values -- font name
and size. The name is the NSFont's fontName, however a custom value
transformer is used to retrieve the font's displayName for display.
The font details are presented using a text field's displayPatternValue
binding.
mmalc
_______________________________________________
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.