Re: StatusItem for PreferencePane
Re: StatusItem for PreferencePane
- Subject: Re: StatusItem for PreferencePane
- From: Brian Ganninger <email@hidden>
- Date: Sun, 14 Jan 2007 21:41:27 -0600
A great example to look at is Growl (http://www.growl.info/) which
uses a preference pane to configure a faceless application that runs
(GrowlHelperApp) which also conditionally enables an NSStatusItem
from that app. It's open-source (under a BSD license) and should be a
thorough treatment of what you're looking to do.
- brian 'bgannin' ganninger
On Jan 14, 2007, at 6:35 PM, Torsten Curdt wrote:
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:
40mac.com
This email sent to email@hidden
_______________________________________________
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