• 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
what is the best (easiest) way to get the selection in an NSOutlineView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

what is the best (easiest) way to get the selection in an NSOutlineView?


  • Subject: what is the best (easiest) way to get the selection in an NSOutlineView?
  • From: Daniel Morrow <email@hidden>
  • Date: Thu, 7 Oct 2004 15:21:28 -0400

I have an NSOutlineView, and you can only select one row in it. No multiple selection of any sort.

When someone chooses a row, I want to know, get the object for that row, and then perform some action.

I'm installing a delegate method, "outlineViewSelectionDidChange", and this seems to get what I want. However, I've looked at other samples, Apple's "DragNDropOutlineView" and another one, and neither of them use this method. Actually, the DragNDropOutlineView way of doing things looks a bit complex.

Should I just stick with the delegate method, or try something else?

-Dan.

_______________________________________________
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: what is the best (easiest) way to get the selection in an NSOutlineView?
      • From: Mike Bolton <email@hidden>
  • Prev by Date: Re: triggerChangeNotificationsForDependentKey in subclass of NSArrayController
  • Next by Date: New to Cocoa - Action Buttons
  • Previous by thread: Re: Memory management and Objects.(Newbie)
  • Next by thread: Re: what is the best (easiest) way to get the selection in an NSOutlineView?
  • Index(es):
    • Date
    • Thread