contextual menu for NSCell in NSOutlineView
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