Re: Simple bindings Boolean test for 'nothing selected'
Re: Simple bindings Boolean test for 'nothing selected'
- Subject: Re: Simple bindings Boolean test for 'nothing selected'
- From: Tim Lucas <email@hidden>
- Date: Mon, 20 Jun 2005 23:42:00 +1000
On 20/06/2005, at 1:20 PM, Andrew White wrote:
I have an NSTableView. I want another control to check whether there
is a current selection. I can get it to work using selection.property
and use the fact that the selection placeholder will return nil and
thus the whole result is 'nil'.
See "Available Value Transformers":
http://developer.apple.com/documentation/Cocoa/Conceptual/
ValueTransformers/Concepts/TransformersAvail.html
You'll want to specify NSIsNotNilTransformerName (available in IB's
default set of value transformers) as the value transformer for the
binding, or instead just bind to "myController.selection.@count"
- tim lucas
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden