Usefulness of NSSharedUserDefaultsController?
Usefulness of NSSharedUserDefaultsController?
- Subject: Usefulness of NSSharedUserDefaultsController?
- From: Rick Mann <email@hidden>
- Date: Wed, 20 May 2009 15:24:30 -0700
How useful is it to bind (in IB) to NSSharedUserDefaultsController, in
practice? I have a couple checkboxes bound to properties foo and bar
in my app delegate. There are a couple other properties that are
dependent on foo and bar.
I'd like for the values of foo and bar to be persisted across
launches, so it makes sense for them to be prefs. That makes me think
that I could bind the checkboxes to the
NSShareduserDefaultsController, but my app needs to take action when
those change.
Maybe the best way is to implement the setters/getters for foo and
bar, and within those, set and get the user defaults. But as I think
about it, it seems that one would never directly bind UI to
NSShareduserDefaultsController.
Am I missing something?
TIA,
--
Rick
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden