• 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: 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


  • Follow-Ups:
    • Re: Getting the context of a context menu
      • From: Andy Lee <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: Carmin Politano <email@hidden>)
 >Re: Getting the context of a context menu (From: Nicko van Someren <email@hidden>)
 >Re: Getting the context of a context menu (From: Andy Lee <email@hidden>)
 >Re: Getting the context of a context menu (From: Nicko van Someren <email@hidden>)

  • Prev by Date: NSMutableArray becomes NSString?
  • Next by Date: Re: Getting the context of a context menu
  • Previous by thread: Re: Getting the context of a context menu
  • Next by thread: Re: Getting the context of a context menu
  • Index(es):
    • Date
    • Thread