• 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: Accessing the Preference setup of other application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Accessing the Preference setup of other application


  • Subject: Re: Accessing the Preference setup of other application
  • From: j o a r <email@hidden>
  • Date: Mon, 9 Jan 2006 10:40:04 +0100


On 9 jan 2006, at 10.18, David Chan wrote:

I was wondering if it is possible for me to access the userdefault
setting of other application. Currently I am using NSUserDefaults to
set up my own application's preference. But there is one setting which
requires me to notify my another application of the changes in value.
Is there a way to access that other application's userdefault?

You can do this via CFPreferences, but I'm not sure it's a good idea. It depends on how you do it.
In general, you shouldn't access the preference files of other applications at all - for obvious reasons.
You also write that you want to use this as a notification mechanism, and that will not work at all. NSUserDefaults uses a cached copy of the contents of the preference file (AFAIK), and will not pick up any changes made to the file before the application is relaunched.


j o a r


Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Accessing the Preference setup of other application (From: David Chan <email@hidden>)

  • Prev by Date: Accessing the Preference setup of other application
  • Next by Date: Re: Creating QTMovie with multiple tracks just for playing them
  • Previous by thread: Accessing the Preference setup of other application
  • Next by thread: Re: Accessing the Preference setup of other application
  • Index(es):
    • Date
    • Thread