Re: NSStatusItem position problem
Re: NSStatusItem position problem
- Subject: Re: NSStatusItem position problem
- From: Guy English <email@hidden>
- Date: Mon, 26 Mar 2007 04:49:42 -0400
It's gross but you could use valueForKeyPath: wrapped with an
exception handler to try to get _fWindow. If an exception is thrown
then you don't get access to the window obviously.
On 25-Mar-07, at 8:52 PM, Orr Philip wrote:
Hi there all,
I'm really stuck in trying to find the global position and size of
my NSStatusItem.
When in debug mode I can see _fWindow, which contains exactly what
I need, only its private and can't be used.
Simply I'm looking for its start position along the menubar and its
length.
Any thoughts or pointers on this would be much appreciated.
Also, if you attach a custom view to your NSStatusItem can you
reset it back to what is was before?
Phil
_______________________________________________
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:
40gmail.com
This email sent to email@hidden
_______________________________________________
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