Re: Mixed-state checkboxes

2016-07-08 Thread Ken Thomases
On Jul 8, 2016, at 7:36 AM, Jonathan Taylor wrote: > > I'm trying to work out the correct way to handle a mixed-state checkbox > (NSButton checkbox with allowsMixedState=YES), bound to a property on my > controller. I am intending it to serve as an "applies to all" type control at > the head

Re: Mixed-state checkboxes

2016-07-08 Thread Quincey Morris
On Jul 8, 2016, at 11:44 , Jonathan Taylor wrote: > > I get an error: "this class is not key value coding-compliant for the key > globalChannelEnableState" It may well be that for the checkbox to be editable/actionable for the user, the underlying property must be settable. I think you could

Re: Mixed-state checkboxes

2016-07-08 Thread Jonathan Taylor
Thanks Quincey, that makes sense what you're saying about it being more an action method, and your suggested approach sounds nice. However, I have not managed to quite get things working based on what I think you were describing. I have set up an action on the checkbox, and based on your comme

Re: Mixed-state checkboxes

2016-07-08 Thread Quincey Morris
On Jul 8, 2016, at 05:36 , Jonathan Taylor wrote: > > My setter code currently looks like this: > > -(void)setGlobalChannelEnableState:(NSInteger)state In the circumstances you describe, a setter method is effectively an action method, not a setter — that is, it becomes a method that’s called

Mixed-state checkboxes

2016-07-08 Thread Jonathan Taylor
Hi all, I'm trying to work out the correct way to handle a mixed-state checkbox (NSButton checkbox with allowsMixedState=YES), bound to a property on my controller. I am intending it to serve as an "applies to all" type control at the head of a column of checkboxes - so if other checkboxes in t