• 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: Custom View Bindings (was : NSTextView's "data" binding)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom View Bindings (was : NSTextView's "data" binding)


  • Subject: Re: Custom View Bindings (was : NSTextView's "data" binding)
  • From: Steve Weller <email@hidden>
  • Date: Mon, 30 Apr 2007 16:47:58 -0700


KVO: model -->> controller -->> view

KVC:
	view --> controller --> model


I recommend putting this diagram right up front in the KVO/KVC/ Bindings documentation. It took me a long time to get this simple, clear model into my head.


But also be clear about what the arrows mean: a --> b means that messages flow from a to b. For KVO the messages flow in response to observations that go the opposite way (the controller observes the model) and message passing starts with a change to the model. For KVC message passing starts with an event from the user. Bindings are made in the same direction as the messages: views bind to controllers.


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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


References: 
 >Custom View Bindings (was : NSTextView's "data" binding) (From: Yann Bizeul <email@hidden>)
 >Re: Custom View Bindings (was : NSTextView's "data" binding) (From: mmalc crawford <email@hidden>)

  • Prev by Date: Re: Hide baseline separator in toolbar
  • Next by Date: NSImageView setAnimates:YES... PLEASE?
  • Previous by thread: Re: Custom View Bindings (was : NSTextView's "data" binding)
  • Next by thread: adding new NSButtons to an application "on the fly"
  • Index(es):
    • Date
    • Thread