NSOutlineView contextual menu
NSOutlineView contextual menu
- Subject: NSOutlineView contextual menu
- From: Michael Robinette <email@hidden>
- Date: Wed, 13 Aug 2003 13:16:31 -0700
I'm want to display a contextual menu in an outline view:
//[_view setMenu: [controller contextMenu]];
NSTableColumn* tc = [[_view tableColumns] objectAtIndex: 0];
NSCell* cell = [tc dataCell];
[cell setMenu: [controller contextMenu]];
when i send setMenu: to _view, a menu gets displayed when the view is
control-clicked, but the click is consumed and the selection doesn't
update, so the menu is opened in the wrong context.
if I setMenu on the data cell (which is what seems to be the
recommended way) I get no menu.
Basically, I'm after the same behavior that's in Mail's mailbox drawer,
when you control-click.
What am I missing?
thanks,
- michael
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.