• 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: Binding an objects "Enabled" to a button in IB
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Binding an objects "Enabled" to a button in IB (From: email@hidden)
 >Re: Binding an objects "Enabled" to a button in IB (From: Joanna Carter <email@hidden>)
 >Re: Binding an objects "Enabled" to a button in IB (From: Jerry Krinock <email@hidden>)
 >Re: Binding an objects "Enabled" to a button in IB (From: Joanna Carter <email@hidden>)
 >Re: Binding an objects "Enabled" to a button in IB (From: email@hidden)

  • Prev by Date: Re: Finding source of EXC_BREAKPOINT crash
  • Next by Date: Re: NSCell and partial redraw
  • Previous by thread: Re: Binding an objects "Enabled" to a button in IB
  • Next by thread: Re: Binding an objects "Enabled" to a button in IB
  • Index(es):
    • Date
    • Thread