Re: Getting the context of a context menu
Re: Getting the context of a context menu
- Subject: Re: Getting the context of a context menu
- From: "Clark Cox" <email@hidden>
- Date: Sat, 14 Apr 2007 16:16:19 -0700
On 4/14/07, Nicko van Someren <email@hidden> wrote:
On 12 Apr 2007, at 12:50, Nicko van Someren wrote:
...
> So, is there some way that I've not found to determine which view
> was responsible for raising a context menu, or am I going to have
> to subclass every standard UI item I use just so that I can bolt in
> a -menuForEvent: method that says { menuContext = self; return
> [self menu]; }
[snip]
It's not clear to me why the +_contextMenuEvent: method needs to be
private, and I've not checked to see if it's a recent addition or
something that has been there since NextStep, but it does the trick
for the moment...
Make sure that you file a bug requesting that this method (or one like
it) be made public, until it is public, you cannot count on it
existing on future releases of the OS (or even future revisions of
individual frameworks).
--
Clark S. Cox III
email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden