• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: MenuStatusItem --
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >MenuStatusItem -- (From: info by maconf <email@hidden>)
 >Re: MenuStatusItem -- (From: "Clint Shryock" <email@hidden>)
 >Re: MenuStatusItem -- (From: "Clint Shryock" <email@hidden>)

  • Prev by Date: Re: Application information that all users can see
  • Next by Date: Re: Releasing WebView
  • Previous by thread: Re: MenuStatusItem --
  • Next by thread: Re: MenuStatusItem --
  • Index(es):
    • Date
    • Thread