• 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
Binding NSButton enabled state
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Binding NSButton enabled state


  • Subject: Binding NSButton enabled state
  • From: "Lorenzo Thurman" <email@hidden>
  • Date: Sat, 19 Apr 2008 13:08:07 -0500

I have two NSTableViews, tableA and tableB, each managed by separate
NSArrayControllers. When a selection is made in either table, an instance
variable is set. I want to have an NSButton's enabled state to 'YES'
whenever the instance variable is set. I've tried binding the button to the
instance variable through my controller, but
the button becomes enabled only when there is selection in tableA, but it
does not enable when a selection s made in tableB. As a matter of fact, if
the button is enabled and I make a selection in tableB, the button will
disable. It will re-enable by clicking in tableA, but then disable again
when clicking in tableB. Does anyone have any pointers on how I can make
this work?

--
"My break-dancing days are over, but there's always the funky chicken"
--The Full Monty
_______________________________________________

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

  • Follow-Ups:
    • Re: Binding NSButton enabled state
      • From: Chris Hanson <email@hidden>
  • Prev by Date: Re: Subclassing
  • Next by Date: Re: Should a Method set NSError* to nil when No Error?
  • Previous by thread: Re: Should a Method set NSError* to nil when No Error?
  • Next by thread: Re: Binding NSButton enabled state
  • Index(es):
    • Date
    • Thread