Re: StatusItem for PreferencePane
Re: StatusItem for PreferencePane
- Subject: Re: StatusItem for PreferencePane
- From: Uli Kusterer <email@hidden>
- Date: Mon, 15 Jan 2007 02:32:22 +0100
Am 15.01.2007 um 01:35 schrieb Torsten Curdt:
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?
Well, you can put the helper app in the "Resources" folder of the
PrefPane, and have them write to the same preferences file. However,
don't give them the same bundle ID -- I think there's a way to let
NSUserDefaults use a different key, and if not, there's still
CFPreferences or just manually locating the prefs file and reading it
using dictionaryWithContentsOfFile:.
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