• 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
get the selection in an NSOutlineView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

get the selection in an NSOutlineView


  • Subject: get the selection in an NSOutlineView
  • From: Rua Haszard Morris <email@hidden>
  • Date: Wed, 9 Jun 2010 16:29:32 +1200

I have an NSOutlineView which has a single column, and 2 levels of tree - each item in the list can have child items but those subitems don't have children.

How can I determine the selected items?

NSTableView -selectedRow returns row indices that change dependent on whether parent items are expanded, so that won't do.
I could attempt to keep track of the selection via delegate method outlineView:shouldSelectItem: but this seems a bad idea.

Am I missing something? Surely it is possible to ask an NSOutlineView which items are selected?

thanks
Rua Haszard Morris._______________________________________________

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: get the selection in an NSOutlineView
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: Erasing drawn content
  • Next by Date: Re: get the selection in an NSOutlineView
  • Previous by thread: Cocoaheads Lake Forest (92630) meeting, Wed 6/9/2010 at 7 pm on implementing a Cocoa Touch app
  • Next by thread: Re: get the selection in an NSOutlineView
  • Index(es):
    • Date
    • Thread