• 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
Bind to single table selection but not multiple?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bind to single table selection but not multiple?


  • Subject: Bind to single table selection but not multiple?
  • From: Trygve Inda <email@hidden>
  • Date: Sun, 10 Sep 2006 10:45:57 +0000
  • Thread-topic: Bind to single table selection but not multiple?

I have a button which should be active if one (and only one) item in an
NSTableView is selected. I'd like to allow multiple selections for other
purposes.

Currently I bind to the canRemove property to see if something is selected,
but with multiple selections, how can I activate my button if and only if a
single item is selected?

Can this be done with bindings?

Thanks,

Trygve



 _______________________________________________
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: Bind to single table selection but not multiple?
      • From: George Orthwein <email@hidden>
  • Prev by Date: Re: Tracking rectangles and bezier paths (Wagner Truppel)
  • Next by Date: Re: _NSStateMarker
  • Previous by thread: Re: QTRecorder Sample Code
  • Next by thread: Re: Bind to single table selection but not multiple?
  • Index(es):
    • Date
    • Thread