• 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: How much does NSObject's bind:toObject:withKeyPath:options: do?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How much does NSObject's bind:toObject:withKeyPath:options: do?


  • Subject: Re: How much does NSObject's bind:toObject:withKeyPath:options: do?
  • From: "R. Matthew Emerson" <email@hidden>
  • Date: Thu, 21 Sep 2006 11:23:23 -0400


On Sep 21, 2006, at 6:35 AM, Mailing list subscriptions wrote:

Background info:
- my class is a controller class; not a model or a view
- some aspects of the behaviour of the controller should change according to user preferences
- I'd therefore like to bind a couple of instance variables in the controller to the corresponding values in the NSUserDefaults, mediated via NSUserDefaultsController

I don't think Cocoa Bindings is the right tool here.

In the case you describe, in your custom controller, I would just register for NSUserDefaultsDidChangeNotifiction and get the updated defaults upon receipt of the notification. (Presumably this is what you meant by "do it manually.")


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: How much does NSObject's bind:toObject:withKeyPath:options: do?
      • From: Mailing list subscriptions <email@hidden>
References: 
 >How much does NSObject's bind:toObject:withKeyPath:options: do? (From: Mailing list subscriptions <email@hidden>)

  • Prev by Date: Re: pid vs. Process Serial Number
  • Next by Date: Re: pid vs. Process Serial Number
  • Previous by thread: How much does NSObject's bind:toObject:withKeyPath:options: do?
  • Next by thread: Re: How much does NSObject's bind:toObject:withKeyPath:options: do?
  • Index(es):
    • Date
    • Thread