• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: StatusItem for PreferencePane
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >StatusItem for PreferencePane (From: Torsten Curdt <email@hidden>)
 >Re: StatusItem for PreferencePane (From: Andrew Farmer <email@hidden>)
 >Re: StatusItem for PreferencePane (From: Torsten Curdt <email@hidden>)

  • Prev by Date: NSURLConnection and HTTP Headers
  • Next by Date: Re: When NSArray is not an Array
  • Previous by thread: Re: StatusItem for PreferencePane
  • Next by thread: Re: StatusItem for PreferencePane
  • Index(es):
    • Date
    • Thread