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