• 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
Testing selection with NSArrayController?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Testing selection with NSArrayController?


  • Subject: Testing selection with NSArrayController?
  • From: Rick Mann <email@hidden>
  • Date: Sun, 18 Jan 2015 00:10:28 -0800

I don't see any method for testing if an object is selected, other than to first get the index of the object in the backing NSArray, then see if that index is in the NSArrayController's selectedIndexes. Is this really the way to test to see if an object is selected?

I'm building a view that renders a bunch of objects (a drawing canvas). Some of these render differently if the objects are selected. As I iterate through the list of objects to render, I need to test if each one is selected.

Am I missing something? Thanks.

--
Rick Mann
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


  • Follow-Ups:
    • Re: Testing selection with NSArrayController?
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: drawRect runs twice, bounds are changed in between
  • Next by Date: Re: Testing selection with NSArrayController?
  • Previous by thread: Re: FSEventStreamCreate: BUG in libdispatch client: kevent[EVFILT_WRITE]
  • Next by thread: Re: Testing selection with NSArrayController?
  • Index(es):
    • Date
    • Thread