Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Right way to implement contextual menu in table/outline view?




On 9 Dec 2008, at 2:56 pm, Jim Correia wrote:

On Dec 8, 2008, at 10:51 PM, Graham Cox wrote:

In my app I have an NSOutlineView. I have contextual menus relating to the overall table, but also relating to an individual item row. I notice that when I right-click on a row, I get a special highlight (blue outline) independent of the selected row. How can I find out what row that was when the menu item's action is called? I need to handle the menu differently depending on whether a specific row was right-clicked or just the general table.

I don't know if this made the general docs, but this is discussed in the AppKit release notes for Leopard.


The relevant section is titled "NSTableView/NSOutlineView - Contextual menu support".

Jim


Thanks Jim, just what I needed (in a nutshell, -clickedRow:)

--Graham


_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Right way to implement contextual menu in table/outline view? (From: Graham Cox <email@hidden>)
 >Re: Right way to implement contextual menu in table/outline view? (From: Jim Correia <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.