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

Re: NSUserDefaultsController and KVO


  • Subject: Re: NSUserDefaultsController and KVO
  • From: Chris Hanson <email@hidden>
  • Date: Mon, 8 Dec 2003 20:37:33 -0600

On Dec 8, 2003, at 4:03 PM, David Webster wrote:
I have a problem getting back a value from NSUserDefaults that I write
to from a popup button bound to NSUserDefaultsController. I need to
have my preference controller notified when this popup changes as I
need to set the state of other widgets based on this popup.

Why not just create a binding in each of the other controls between their value and the same key in the Shared User Defaults controller?

That way, you can let the controller architecture do all of the heavy lifting.

-- Chris

--
Chris Hanson <email@hidden>
bDistributed.com, Inc.
Outsourcing Vendor Evaluation
Custom Mac OS X Development
Cocoa Developer Training
_______________________________________________
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: 
 >NSUserDefaultsController and KVO (From: David Webster <email@hidden>)

  • Prev by Date: CGShading line, triangle?
  • Next by Date: tiff from NSImage, at 300 dpi
  • Previous by thread: NSUserDefaultsController and KVO
  • Next by thread: Re: NSUserDefaultsController and KVO
  • Index(es):
    • Date
    • Thread