Simple bindings Boolean test for 'nothing selected'
Simple bindings Boolean test for 'nothing selected'
- Subject: Simple bindings Boolean test for 'nothing selected'
- From: Andrew White <email@hidden>
- Date: Mon, 20 Jun 2005 13:20:32 +1000
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'.
I tried using selection directly and using the various placeholder values
to set 'Yes' or 'No', but this seemed to lock my app up and prevent the
windows from displaying.
I could also write my own value transformer to check the cardinality of
selectedObjects or selectedIndexes, but this seems like unnecessary work.
Is there a very simple IB test to say 'array controller has a selection?',
and if so what is it? Thanks
--
Andrew White
--------------------------------------------------------------------------
This email and any attachments may be confidential. They may contain legally
privileged information or copyright material. You should not read, copy,
use or disclose them without authorisation. If you are not an intended
recipient, please contact us at once by return email and then delete both
messages. We do not accept liability in connection with computer virus,
data corruption, delay, interruption, unauthorised access or unauthorised
amendment. This notice should not be removed.
_______________________________________________
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