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: Andy Lee <email@hidden>
- Date: Fri, 13 Apr 2007 09:35:16 -0400
On Apr 13, 2007, at 7:53 AM, Nicko van Someren wrote:
I was not aware that poseAs is in danger of going away in Leopard,
but I'm not sure that I can bring myself to swizzling methods; it
just seems to nasty!
I believe it will at least be deprecated.
(List Mom: I did a search and couldn't find official confirmation of
this. If I violated NDA, sorry, it was an honest mistake!)
I just had another idea -- maybe you could subclass NSMenu and
override +popUpContextMenu:withEvent:forView: to remember where the
mouse was at the time the menu popped up. From that you could figure
out what view was under that mouse position. I don't know if this
would even work -- I was just trying to think of a way to avoid poseAs.
It would be even better if someone would chime in and say "You guys
are *all* nuts -- all you have to do is..." :)
--Andy
_______________________________________________
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