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

contextual menu for NSCell in NSOutlineView


  • Subject: contextual menu for NSCell in NSOutlineView
  • From: Scott Ruda <email@hidden>
  • Date: Mon, 13 Sep 2004 11:23:05 -0700

I'd like to have a contextual menu for NSCell items in an NSOutlineView and was hoping someone could steer me in a good direction. I know I can attach a contextual menu to the NSOutlineView in IB, but I don't want that - I want a programmatically configurable menu per cell instance and type.

I've tried using setMenu: on the NSCell, but it doesn't seem to do anything. I've also overridden menuForEvent: in the outline view, but it is never called. The ADC documentation for these messages seems to be pretty sparse with no mention of use cases.

I can see a few options based on overriding mouseDown: and track: messages and such, but before I pursue those I was hoping that someone could make sure I am on the best path. A pointer to any example code would be greatly appreciated.

_______________________________________________
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: contextual menu for NSCell in NSOutlineView
      • From: Ondra Cada <email@hidden>
  • Prev by Date: Re: New ML List Software
  • Next by Date: [Moderator] Re: New ML List Software
  • Previous by thread: Cache folder and WebView
  • Next by thread: Re: contextual menu for NSCell in NSOutlineView
  • Index(es):
    • Date
    • Thread