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

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to