Re: Cocoa bindings one- or bi-directional
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