Re: Accessing the Preference setup of other application
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