• 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: Screen Coordinates of Menu. Use CTM? (was: Give menu keyboard focus)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Screen Coordinates of Menu. Use CTM? (was: Give menu keyboard focus)


  • Subject: Re: Screen Coordinates of Menu. Use CTM? (was: Give menu keyboard focus)
  • From: Seth Willits <email@hidden>
  • Date: Sun, 09 Oct 2011 19:57:38 -0700

Yeeeeeahh... What you did there was pretty nasty. :p

The status icon/view in the menu bar is in a window. You can thus get that window's coordinates by [[[statusItem view] window] frame]. This relies on how it's currently implemented, however I don't see it changing any time soon.


--
Seth Willits







On Oct 9, 2011, at 7:47 PM, Graham Cox wrote:

> This all sounds like a generally terrible idea.
>
> On 10/10/2011, at 1:26 PM, Jerry Krinock wrote:
>
>> Is there any way to get the global/screen coordinates of a menu, an NSStatusItem in particular?


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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: Screen Coordinates of Menu. Use CTM? (was: Give menu keyboard focus)
      • From: Jerry Krinock <email@hidden>
References: 
 >Give a menu keyboard focus - in code (From: Jerry Krinock <email@hidden>)
 >Re: Give a menu keyboard focus - in code (From: Jerry Krinock <email@hidden>)
 >Re: Give a menu keyboard focus - in code (From: Jerry Krinock <email@hidden>)
 >Screen Coordinates of Menu. Use CTM? (was: Give menu keyboard focus) (From: Jerry Krinock <email@hidden>)
 >Re: Screen Coordinates of Menu. Use CTM? (was: Give menu keyboard focus) (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Screen Coordinates of Menu. Use CTM? (was: Give menu keyboard focus)
  • Next by Date: Give a menu keyboard focus – in code
  • Previous by thread: Re: Screen Coordinates of Menu. Use CTM? (was: Give menu keyboard focus)
  • Next by thread: Re: Screen Coordinates of Menu. Use CTM? (was: Give menu keyboard focus)
  • Index(es):
    • Date
    • Thread