Re: Using a NSStatusBar in a Preferences pane
Re: Using a NSStatusBar in a Preferences pane
- Subject: Re: Using a NSStatusBar in a Preferences pane
- From: Finlay Dobbie <email@hidden>
- Date: Mon, 4 Feb 2002 18:20:28 +0000
On Monday, February 4, 2002, at 04:18 PM, Taxxodium wrote:
I'm making a preferences pane that uses an NSStatusBar. It works fine
except
that when I quit the system preferences application my NSStatusBar
doesn't
get displayed anymore. Is there a solution for this problem?
NSStatusItems (the NSStatusBar is displayed by the system) must be
published by a running application. If you create one from a preference
pane, it is being handled by the System Preferences application, of
course, and will obviously be removed when the application quits.
You can get around this by writing a background application (be careful
to read QA1081 at
http://developer.apple.com/qa/qa2001/qa1081.html).
-- Finlay