• 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: Cocoa bindings one- or bi-directional
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa bindings one- or bi-directional


  • Subject: Re: Cocoa bindings one- or bi-directional
  • From: Gwynne <email@hidden>
  • Date: Fri, 27 May 2005 05:45:30 -0400

On May 27, 2005, at 5:39 AM, Scott Anguish wrote:
You bind an attribute of a UI widget to the property of a model object...
    picking one further nit on this..
    Always, always use a controller.
Oh, indeed --- controller taken as read!  :-)

So, Scott, people sometimes ask, "What are the benefits of using a controller? Don't they just get in the way?" What would you say to these people? ;-)
If ever there was a setup...

Suck it up and use them cuz Andreas said so? :-) I guess that only sticks for those of us who are were in that meeting....

Controllers implement the NSEditor/NSEditorRegistration protocols. That means that they correctly handle the cases when documents revert, or save, and forward the correct notifications to the model/view items when that happens. This way models get any uncommitted edits, and can handle them appropriately.

Apple doesn't endorse or recommend connecting UI to model directly, nor model<->model bindings

And yet, the Tiger version of IB lets you do exactly that far more easily than before. What does this tell us?


-- Gwynne, daughter of the Code
http://musicimage.plasticchicken.com
"This whole world is an asylum for the incurable."

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Cocoa bindings one- or bi-directional
      • From: Scott Anguish <email@hidden>
References: 
 >Cocoa bindings one- or bi-directional (From: Zdzislaw Losvik <email@hidden>)
 >Re: Cocoa bindings one- or bi-directional (From: Kay Roepke <email@hidden>)
 >Re: Cocoa bindings one- or bi-directional (From: mmalcolm crawford <email@hidden>)
 >Re: Cocoa bindings one- or bi-directional (From: mmalcolm crawford <email@hidden>)
 >Re: Cocoa bindings one- or bi-directional (From: Scott Anguish <email@hidden>)
 >Re: Cocoa bindings one- or bi-directional (From: mmalcolm crawford <email@hidden>)
 >Re: Cocoa bindings one- or bi-directional (From: Scott Anguish <email@hidden>)

  • Prev by Date: Re: Cocoa bindings one- or bi-directional
  • Next by Date: Re: Cocoa bindings one- or bi-directional
  • Previous by thread: Re: Cocoa bindings one- or bi-directional
  • Next by thread: Re: Cocoa bindings one- or bi-directional
  • Index(es):
    • Date
    • Thread