Re: Solved: Re: Using multiple bindings to enable a button

2015-02-11 Thread Steve Mills
On Feb 11, 2015, at 13:51:29, Ken Thomases wrote: > > The selectedObjects property never returns those placeholders. Only the > selection property does that. However, that wouldn't support @count, I don't > think. @count appears to work on selection when I tested it, FYI. > I believe it sho

Re: Solved: Re: Using multiple bindings to enable a button

2015-02-11 Thread Ken Thomases
On Feb 11, 2015, at 1:25 PM, Steve Mills wrote: > On Feb 11, 2015, at 13:06:20, Steve Mills wrote: >> >> This also sparked my understanding of the other binding attributes, like >> Multiple Values Placeholder and such, resulting in me not needing my special >> EnableOnlyFor1ItemXformer value

Re: Solved: Re: Using multiple bindings to enable a button

2015-02-11 Thread Steve Mills
On Feb 11, 2015, at 13:06:20, Steve Mills wrote: > > This also sparked my understanding of the other binding attributes, like > Multiple Values Placeholder and such, resulting in me not needing my special > EnableOnlyFor1ItemXformer value transformer on the array controller > selectedObjects.@

Solved: Re: Using multiple bindings to enable a button

2015-02-11 Thread Steve Mills
Thanks for the mental prodding, guys. I did some sleuthing by added an observer for the array controller's selectedObjects.@count in code so I could watch it as well as the comboStringValue property. When the selection changed and the combobox was empty, I noticed the comboStringValue property w

Re: Using multiple bindings to enable a button

2015-02-10 Thread Ken Thomases
On Feb 11, 2015, at 12:31 AM, Quincey Morris wrote: > On Feb 10, 2015, at 21:45 , Steve Mills wrote: >> >> I'm not sure about the KVO compliancy. I'm still a newbie in this area. Let >> me give you the rundown on the stuff that deals with it. >> >> @interface WindController : NSWindowControl

Re: Using multiple bindings to enable a button

2015-02-10 Thread Quincey Morris
On Feb 10, 2015, at 21:45 , Steve Mills wrote: > > I'm not sure about the KVO compliancy. I'm still a newbie in this area. Let > me give you the rundown on the stuff that deals with it. > > @interface WindController : NSWindowController > @property (weak) NSString* comboStringValue; > @end > >

Re: Using multiple bindings to enable a button

2015-02-10 Thread Steve Mills
On Feb 10, 2015, at 23:04:02, Quincey Morris wrote: > > Are you sure that the “comboStringValue” property is KVO-compliant? Is it a > NSString or a NSMutableString? I'm not sure about the KVO compliancy. I'm still a newbie in this area. Let me give you the rundown on the stuff that deals with

Re: Using multiple bindings to enable a button

2015-02-10 Thread Quincey Morris
On Feb 10, 2015, at 20:23 , Steve Mills wrote: > > -Enabled (Keywords Array Controller.selection.@count) using a custom value > transformer that returns true only if the count is 1 > -Enabled2 (File's Owner.comboStringValue.length) > > That didn't work. Swapping them did. Smells buggy to me. Ca