• 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: Scott Anguish <email@hidden>
  • Date: Fri, 27 May 2005 05:56:56 -0400


On May 27, 2005, at 5:50 AM, mmalcolm crawford wrote:

    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?





    placeholder's aren't really something you get from controllers.. they're part of the binding themselves. controllers can provide additional markers via the -selection method that you can then change into other values with placeholders... I'm assuming that is what you mean.

    Yes, some controllers provide selection, but that may be a moot point if you're using a single object, and that's the only case where people are that likely to try and circumvent the controller.  Even then, bad idea.

    IB allows you, and even encourages you, to do things that may not be acceptable in all cases. For example, just now IB is encouraging me to throw a brick at mmalc at WWDC... I'm attempting to resist, but it has a compelling argument.

    Y'all will just have to come to the first bindings session to find out if I do it.

Secrest out!


 _______________________________________________
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

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: mmalcolm crawford <email@hidden>)

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