Re: Binding the enabled property of a NSMatrix instance to wether or not a multiple selection on a array controller is made.
Re: Binding the enabled property of a NSMatrix instance to wether or not a multiple selection on a array controller is made.
- Subject: Re: Binding the enabled property of a NSMatrix instance to wether or not a multiple selection on a array controller is made.
- From: Eloy Duran <email@hidden>
- Date: Fri, 20 Jun 2008 10:07:44 +0200
Hi Keary,
Awesome, this indeed works. Thanks a lot!
And about the klunkyness, it does feel a bit that way,
but it's a lot better than not being able to do it :)
Cheers,
Eloy
On 19 jun 2008, at 21:03, Keary Suska wrote:
6/19/08 3:30 AM, also sprach email@hidden:
Just wanted to check if I need to explain it differently?
Simple recap: I want a NSMatrix to be disabled when the selection of
the NSArrayController it's bound to returns a multiple selection.
What I will often do in these cases is bind "enabled" to a keypath
that I
know will always be non-nil, and use the NSIsNotNil transformer. I
then set
the "No Selection" and "Multiple Selection" placeholders to "No".
May be
kludgey, but it works.
P.S. to be safe, you could also set the "NULL" placeholder to "Yes",
just in
case null/nil values are possible.
On Jun 18, 2008, at 12:23 PM, Eloy Duran wrote:
Hi list,
I have a NSArrayController and a form (collection of controls) that
displays attributes for a individual object in the array controller.
One attribute is bound to a NSMatrix (radio buttons) with the
"Selected Index" binding. This works great.
But now I want to disable the NSMatrix when multiple objects in the
array controller are selected.
I have this working with NSTextField, by setting "Allows Editing
Multiple Values Selection" to false and "Conditionally Sets Enabled"
to true.
I did the same for the NSMatrix under it's "Selected Index" binding,
but it doesn't work....
I have tried checking/unchecking all different sorts of
combinations, but nothing really helps.
Any suggestions/ideas? Existing code/examples would be great too.
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
_______________________________________________
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
_______________________________________________
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