| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Steve Cronin (email@hidden) on 2008-12-28 8:41 PM said: >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. No need to drop to CFPreferences. Let's say your 2 bundle identifiers are "com.cronin.mainapp" and "com.cronin.helper". In your helper app, just do this: NSUserDefaults* sud = [NSUserDefaults standardUserDefaults]; [sud addSuiteNamed:@"com.cronin.mainapp"]; Sean _______________________________________________ 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: http://lists.apple.com/mailman/options/cocoa-dev/email@hidden This email sent to email@hidden
| References: | |
| >A Mac App & helper NSStatusItem - how to share preferences (From: Steve Cronin <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.