• 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
Context menu on NSOutlineView, which row is active/selected?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Context menu on NSOutlineView, which row is active/selected?


  • Subject: Context menu on NSOutlineView, which row is active/selected?
  • From: David Melgar <email@hidden>
  • Date: Wed, 27 Jan 2010 00:09:34 -0500

I have a menu set as the Menu outlet of an NSOutlineView to use as a context menu (right click) on a row.

When the menu is chosen on a row, the chosen action on my target (my OutlineView controller) is invoked as expected.

In my view controller, I had been assuming that the row the right click occurred would show up as a selected row. But it does not always. It appears to be a separate state.

How should I determine the row that the right click occurred on?

This is 10.6.2 BTW.

Thanks_______________________________________________

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: Context menu on NSOutlineView, which row is active/selected?
      • From: Corbin Dunn <email@hidden>
    • Re: Context menu on NSOutlineView, which row is active/selected?
      • From: Jens Alfke <email@hidden>
    • Re: Context menu on NSOutlineView, which row is active/selected?
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: Global in NSApplication
  • Next by Date: Re: Context menu on NSOutlineView, which row is active/selected?
  • Previous by thread: Re: Global in NSApplication
  • Next by thread: Re: Context menu on NSOutlineView, which row is active/selected?
  • Index(es):
    • Date
    • Thread