• 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
Re: Getting the context of a context menu
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Getting the context of a context menu (From: Nicko van Someren <email@hidden>)
 >Re: Getting the context of a context menu (From: Nicko van Someren <email@hidden>)

  • Prev by Date: NSPopupButton as pulldown, image problems
  • Next by Date: Re: Best way to implement filtering in large Data Set
  • Previous by thread: Re: Getting the context of a context menu
  • Next by thread: Can a value transformer get its own registration name?
  • Index(es):
    • Date
    • Thread