• 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: NSObjectController and NSDefaultsController Binding?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSObjectController and NSDefaultsController Binding?


  • Subject: Re: NSObjectController and NSDefaultsController Binding?
  • From: mmalcolm crawford <email@hidden>
  • Date: Wed, 21 Apr 2004 21:24:17 -0700

From Drafts from a few days ago...


On Apr 18, 2004, at 2:37 PM, Allan Odgaard wrote:

So in my example the model object (receiver of bind:...) had to be KVC compliant for the key "title" and the controller had to be KVO compliant for the key "values.title". No other requirements should exist.

Not so.
The observer must also know to send a setValue:forKey: message to the observed controller if and when the value associated with its (the observer's) binding changes. For the model object in your example:

[model bind:@"title"
toObject:[NSUserDefaultsController sharedUserDefaultsController]
withKeyPath:@"values.title"
options:nil];

this is unlikely to be the case.

mmalc
_______________________________________________
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.


  • Follow-Ups:
    • Re: NSObjectController and NSDefaultsController Binding?
      • From: Allan Odgaard <email@hidden>
References: 
 >Re: NSObjectController and NSDefaultsController Binding? (From: Bruce Truax <email@hidden>)
 >Re: NSObjectController and NSDefaultsController Binding? (From: Allan Odgaard <email@hidden>)
 >Re: NSObjectController and NSDefaultsController Binding? (From: Scott Anguish <email@hidden>)
 >Re: NSObjectController and NSDefaultsController Binding? (From: Allan Odgaard <email@hidden>)

  • Prev by Date: convert int to NSString
  • Next by Date: Re: convert int to NSString
  • Previous by thread: Re: NSObjectController and NSDefaultsController Binding?
  • Next by thread: Re: NSObjectController and NSDefaultsController Binding?
  • Index(es):
    • Date
    • Thread