Re: Custom View Bindings (was : NSTextView's "data" binding)
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