Re: NSStatusItem position problem
Re: NSStatusItem position problem
- Subject: Re: NSStatusItem position problem
- From: Orr Philip <email@hidden>
- Date: Mon, 26 Mar 2007 12:19:13 +0100
Hi Uli,
I was looking to even trying to find a way to save the current state
of the NSStatusItem MenuView, insert my own NSView, that at least
would allow me to use the [[[myStatusItem view] window] frame]. When
finished returning the view back to the original menu again and
destroying the NSView, that you would think, would be the easiest
solution.
Philip
On 26 Mar 2007, at 09:42, Uli Kusterer wrote:
Am 26.03.2007 um 09:55 schrieb Orr Philip:
As far as setting the custom view back to what it was before, do
you mean back to an NSMenuView?
Yes, back to my menu item again.
I hope there's a better way, but what you could do is create two
status items, one with the menu and one with a view or whatever,
and then set the width of the one you don't need to 0, thus
effectively hiding it.
My first thought was to recreate the status item each time, but
since IIRC status items get appended to the menu bar, that would
mean that if someone else puts up a status item as well, your item
would change places.
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
_______________________________________________
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