• 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: mmalc's Controller examples
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: mmalc's Controller examples: Bindings with graphics
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: Re: Controller introspection API
  • Next by Date: getting mouse moved events from sheet window
  • Previous by thread: Re: NSDecimalNumber and 10.2.x: is this bug a secret?
  • Next by thread: Re: mmalc's Controller examples: Bindings with graphics
  • Index(es):
    • Date
    • Thread