Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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




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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.