• 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: Additional action when a view's value changes (Cocoa Bindings)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Additional action when a view's value changes (Cocoa Bindings)
      • From: Christian Ziegler <email@hidden>
References: 
 >Additional action when a view's value changes (Cocoa Bindings) (From: Christian Ziegler <email@hidden>)
 >Re: Additional action when a view's value changes (Cocoa Bindings) (From: Christian Ziegler <email@hidden>)

  • Prev by Date: Re: Finding process path from Cocoa?
  • Next by Date: Re: Question about touchesBegan
  • Previous by thread: Re: Additional action when a view's value changes (Cocoa Bindings)
  • Next by thread: Re: Additional action when a view's value changes (Cocoa Bindings)
  • Index(es):
    • Date
    • Thread