• 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: mmalcolm crawford <email@hidden>
  • Date: Fri, 27 May 2005 02:50:10 -0700


On May 27, 2005, at 2:37 AM, Scott Anguish wrote:

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? ;-)
[...]
    Suck it up and use them cuz Andreas said so? :-)

That sounds reasonable to me.  Andreas is a clever chappie.

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.

That sounds useful. Looking at the NSEditor protocol (<http:// developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/ ObjC_classic/Protocols/NSEditor.html>), it seems as if one of the other benefits is that it can be used to ensure that, for example, if a user closes a window before tabbing out of a text field, the changes are committed to the model. Is there anything else that controllers can do for us? What about selections and placeholders?

mmalc


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

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