Re: Binding an objects "Enabled" to a button in IB
Re: Binding an objects "Enabled" to a button in IB
- Subject: Re: Binding an objects "Enabled" to a button in IB
- From: Joanna Carter <email@hidden>
- Date: Tue, 31 Aug 2010 14:49:00 +0100
Hi Mikael
> Joanna: do you mean that by applying Jerry's method, we put parts of the
> Controller's duty into the View?
Essentially, yes. The primary design idea behind MVC is that there should be absolutely no business logic in the View; the View should provide a means of interacting with the Controller and reflect the state of the Controller, nothing more.
To that end, it is a relatively simple matter to add a boolean property to the controller class, then the IB designer will be able to see that property and you can connect an enabling button and the edits to that property.
Joanna
--
Joanna Carter
Carter Consulting
_______________________________________________
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