Re: NSView menu
Re: NSView menu
- Subject: Re: NSView menu
- From: Jason Kim <email@hidden>
- Date: Wed, 14 Jul 2004 11:32:34 -0700
Rick Bischoff wrote:
I have a custom NSView that has a contextual menu. I need to somehow
get the point where the user
initiated the menu-- I don't see any thing in NSMenuItem that has this
information. Is it possible in Cocoa?
How about another angle: your NSView should already receive this
information in its menuForEvent: method; the contextual menu appears as
a result of this action.
(I confess I've never used a contextual menu with a custom NSView, but I
found this in Apple's menu/pop-up documentation.)
-Jason
_______________________________________________
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.
References: | |
| >NSView menu (From: Rick Bischoff <email@hidden>) |