Re: Additional action when a view's value changes (Cocoa Bindings)
Re: Additional action when a view's value changes (Cocoa Bindings)
- Subject: Re: Additional action when a view's value changes (Cocoa Bindings)
- From: mmalc Crawford <email@hidden>
- Date: Wed, 09 Dec 2009 17:41:43 -0800
On Dec 9, 2009, at 5:47 am, Christian Ziegler wrote:
> Sorry I got to correct myself, it's not Cocoa Bindings, but direct target/action. So I connected the takeIntegerValue action of both views to each other in contrast to connecting it to a controller.
>
Don't do that.
Both should invoke an action in a controller, which may then update views and models appropriately.
You should read <http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/CocoaFundamentals/> and in particular "The Model-View-Controller Design Pattern" <http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/CocoaFundamentals/CocoaDesignPatterns/CocoaDesignPatterns.html#//apple_ref/doc/uid/TP40002974-CH6-SW1> which is crucial for all Cocoa development.
mmalc
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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