Re: StatusItem for PreferencePane
Re: StatusItem for PreferencePane
- Subject: Re: StatusItem for PreferencePane
- From: Andrew Farmer <email@hidden>
- Date: Sun, 14 Jan 2007 16:19:34 -0800
On 14 Jan 07, at 15:57, Torsten Curdt wrote:
I am trying to write a little Cocoa app that has a NSStatusItem and
gets configured via PreferencePane.
Now if I create the status item in the awakeFromNib of the
PreferencePane it vanishes as soon as I close the system settings.
So this raises the question of the PreferencePane life-cycle for
me. Also I am wondering how people usually implement something like
this. Any pointers appreciated.
PreferencePanes only "exist" as long as System Preferences is open.
If you want to do something persistent, you'll have to write a
background helper application (use the Info.plist key LSUIElement to
prevent it from showing up in the Dock) and add it as a login item.
_______________________________________________
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