• 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
NSOutlineView contextual menu
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Uninstaller Howto?
  • Next by Date: Additional Library problem
  • Previous by thread: [self controlView] in an NSTableView
  • Next by thread: Additional Library problem
  • Index(es):
    • Date
    • Thread