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
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
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.@
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
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
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
>
>
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
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
The docs say that when binding multiple NSButton enabled properties, they are
ANDed together. I tried this earlier and it didn't work when I had them in one
order. So I switched the order and it worked. Bwuh? Here's what I had first:
-Enabled (Keywords Array Controller.selection.@count) using a