Re: Position of my item in the statusBar
Re: Position of my item in the statusBar
- Subject: Re: Position of my item in the statusBar
- From: Tim Schröder <email@hidden>
- Date: Mon, 17 Sep 2012 23:12:02 +0200
Use something like this:
NSRect frame = [[statusItem valueForKey:@"window"] frame];
Tim
Am 17.09.2012 um 22:55 schrieb Erik Stainsby <email@hidden>:
> HI,
>
> I'm wondering if anyone can explain to me (or point me in the right direction) as to how I can determine the current position of my stats bar item at runtime. It seems that the status bar mechanisms are unpublished except for the very basic use of popping an item into the collection and hanging a menu from it. I'd like to know where on screen my item's image is so that I can place a panel window adjacent to it.
>
> Advice?
>
> Erik Stainsby
> email@hidden
>
>
>
> _______________________________________________
>
> 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
_______________________________________________
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