• 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
Usefulness of NSSharedUserDefaultsController?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Usefulness of NSSharedUserDefaultsController?
      • From: Steven Riggs <email@hidden>
  • Prev by Date: Re: CGRectUnion with one empty Rectangle
  • Next by Date: Re: Usefulness of NSSharedUserDefaultsController?
  • Previous by thread: Re: Network Reachability APIs
  • Next by thread: Re: Usefulness of NSSharedUserDefaultsController?
  • Index(es):
    • Date
    • Thread