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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to