• 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: NSEditor, NSEditorRegistration Protocols
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSEditor, NSEditorRegistration Protocols


  • Subject: Re: NSEditor, NSEditorRegistration Protocols
  • From: Dustin Voss <email@hidden>
  • Date: Mon, 8 Mar 2004 03:49:18 -0800

On 2 Mar, 2004, at 10:46 PM, Dustin Voss wrote:
Your view's bind:toObject:withKeyPath:options: method will be called to set up the binding. You'll get an object and a key path. They are the model, as far as your view is concerned. They could be a genuine model object, or something exposed by a controller.

Your view will need to observe the key path to know if the model changes. When your view wants to make a change, it should call setValue:forKey: on the model object.

A correction, in case anybody is relying on this e-mail:

"...it should call setValue:forKeyPath: on the model object."
_______________________________________________
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.


References: 
 >NSEditor, NSEditorRegistration Protocols (From: Alan Donsky <email@hidden>)
 >Re: NSEditor, NSEditorRegistration Protocols (From: Dustin Voss <email@hidden>)

  • Prev by Date: Re: NSNotification filtering problem
  • Next by Date: [ANN] Docoa Browser 0.2
  • Previous by thread: Re: NSEditor, NSEditorRegistration Protocols
  • Next by thread: Re: NSEditor, NSEditorRegistration Protocols
  • Index(es):
    • Date
    • Thread