FROM : Lorenzo Thurman
DATE : Sat Apr 19 20:08:07 2008
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
DATE : Sat Apr 19 20:08:07 2008
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
| Related mails | Author | Date |
|---|---|---|
| Lorenzo Thurman | Apr 19, 20:08 | |
| Chris Hanson | Apr 20, 06:55 | |
| Lorenzo Thurman | Apr 20, 19:47 | |
| Keary Suska | Apr 20, 22:02 | |
| Lorenzo Thurman | Apr 21, 15:40 | |
| Lorenzo Thurman | Apr 21, 15:58 |






Cocoa mail archive

