Re: StatusItem for PreferencePane
Re: StatusItem for PreferencePane
- Subject: Re: StatusItem for PreferencePane
- From: Torsten Curdt <email@hidden>
- Date: Mon, 15 Jan 2007 01:35:54 +0100
On 15.01.2007, at 01:19, Andrew Farmer wrote:
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.
Ah ...OK. That's basically like how I started out :)
But how do I connect the PreferencePane to configure that application
then? Are both completely separate applications? How do I share the
configuration data?
Thanks, Andrew!
cheers
--
Torsten
_______________________________________________
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