On Mar 17, 2013, at 1:06 PM, Seth Willits wrote: > In nibs we bind to NSUserDefaults through NSUserDefaultsController, but is > there any point in using NSUserDefaultsController when binding to a default > through code? (Or using KVO, also.) It's always seemed to work monitoring > NSUserDefaults directly.
Yes, you should bind through NSUserDefaultsController, regardless. Bindings established in IB are not significantly different from bindings established in code. NSUserDefaults is not KVO-compliant. It may work to fetch the value on a one-time basis (i.e. KVC), but you're not guaranteed to be informed when a default changes. Regards, Ken _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com