Re: Initial value of on/off buttons
Re: Initial value of on/off buttons
- Subject: Re: Initial value of on/off buttons
- From: Scott Anguish <email@hidden>
- Date: Mon, 28 Apr 2008 01:42:12 -0400
and, to add another addendum..
in the case of some controls (text fields and text views for example)
not using a controller _can_ cause you problems, and your app to lose
data.
anything that doesn't immediately send its value to from a control to
the data model upon editing requires some protocol support that your
data object just isn't going to have by default. these protocols
ensure that when a view or object resigns its active status that the
values are updated appropriately.
On Apr 28, 2008, at 1:05 AM, William Turner wrote:
You aren't strictly _required_ to use an NSObjectController (or
other NSController subclass), but in practice it is generally better
to do so. Yes, you can bind your views directly to your controller
classed, but that's not really the ideal pattern
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden