Re: Writing to a specified NSUserDefaults domain
Re: Writing to a specified NSUserDefaults domain
- Subject: Re: Writing to a specified NSUserDefaults domain
- From: King Chung Huang <email@hidden>
- Date: Sun, 22 Apr 2007 19:23:21 -0600
If you use the low-level CFPreferences API, you can specify the exact
application, user and host you want to write to.
http://developer.apple.com/documentation/CoreFoundation/Conceptual/
CFPreferences/Tasks/UsingLowAPI.html
King Chung Huang
On 22-Apr-07, at 6:08 PM, Loukas Kalenderidis wrote:
Hi guys,
Is there a supported way to write to an NSUserDefaults domain other
than the one linked to the application's bundle identifier?
The app I'm working on has a helper app that may or may not reside
on the same machine as the main app (communicated with via PDO). If
on separate machines, the machine that the helper app is on may or
may not have another copy of the main app on it. All the pref panes
are plugins that can be loaded by either the main app or the helper
app but I want the prefs set by one app to be available on the
other. Don't ask (actually feel free to ask and I'll explain why,
but I CBF right now). I suppose both apps could have the same
bundle identifier, but that sounds like a Bad Thing to me. Plus I
know I'm going to be asked to write some code later on to launch
the main app from VectorWorks, so that might confuse things if they
both have the same bundle identifier. So is it doable? Or any other
suggestions?
Loukas
_______________________________________________
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
_______________________________________________
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