• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Simple bindings Boolean test for 'nothing selected'
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Simple bindings Boolean test for 'nothing selected'
      • From: Tim Lucas <email@hidden>
  • Prev by Date: Printing a WebView
  • Next by Date: Re: NSTableView: data does not appear
  • Previous by thread: Re: Printing a WebView
  • Next by thread: Re: Simple bindings Boolean test for 'nothing selected'
  • Index(es):
    • Date
    • Thread