A Mac App & helper NSStatusItem - how to share preferences
A Mac App & helper NSStatusItem - how to share preferences
- Subject: A Mac App & helper NSStatusItem - how to share preferences
- From: Steve Cronin <email@hidden>
- Date: Sun, 28 Dec 2008 19:41:37 -0600
Folks;
I have an application which will have an optional helper NSStatusItem.
The statusItem is a stand-alone application which can be installed as
a LoginItem.
I want this status item to be able to read the preferences file from
the application.
The user sets a number of preferences in the normal app which
influence both how the app and the status item should behave.
I'm under the clear impression that I should not use the same
bundleIdentifer for the application and the statusItem.
They could both be running at the same time...
Yet the bundleIdentifier seems to be the key to the file that
[NSUserDefaults sharedDefaults] opens..
This not a managed environment nor is this issue related to users or
hosts, so it doesn't seem that CFPreferences is called for (or even
helps!)
How can I get the statusItem to read the application's preferences?
Thanks!
Steve
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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