Re: MenuStatusItem --
Re: MenuStatusItem --
- Subject: Re: MenuStatusItem --
- From: Uli Kusterer <email@hidden>
- Date: Thu, 1 Feb 2007 00:00:16 +0100
Now, inside my new SystemPreferences when enable a
control i can load the new menubar. Now how can make to fix
permanently this
new menubar after a machine restart?
An NSStatusItem is essentially a transparent window that belongs to
your application placed over the menu bar, so it looks as if it was
part of the menu bar. It will only stay open as long as the
application that created it, which in your case is SystemPreferences.
A PrefPane doesn't keep running after System Preferences has quit.
You need to create another application (which can be a background-
only application without a dock item and menu bar) which creates the
status item. You'll also need to set up a login item that launches
your background-only application each time at login so it can create
and manage your status item.
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