• 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: Writing to a specified NSUserDefaults domain
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Writing to a specified NSUserDefaults domain


  • Subject: Re: Writing to a specified NSUserDefaults domain
  • From: Loukas Kalenderidis <email@hidden>
  • Date: Mon, 23 Apr 2007 12:22:30 +1000

Thanks for the advice. I just realised I neglected to mention that I'm using Cocoa Bindings with an NSUserDefaultsController for a lot of the prefs. I was sort of hoping for a way to set the bundle identifier an NSUserDefaults instance works with and then tell the NSUserDefaultsController to use that instance.

Loukas

On 23/04/2007, at 11:23 AM, King Chung Huang wrote:

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


  • Follow-Ups:
    • Re: Writing to a specified NSUserDefaults domain
      • From: "Sean McBride" <email@hidden>
References: 
 >Writing to a specified NSUserDefaults domain (From: Loukas Kalenderidis <email@hidden>)
 >Re: Writing to a specified NSUserDefaults domain (From: King Chung Huang <email@hidden>)

  • Prev by Date: Re: Writing to a specified NSUserDefaults domain
  • Next by Date: Request for Authors: Focused Cocoa Topic Books
  • Previous by thread: Re: Writing to a specified NSUserDefaults domain
  • Next by thread: Re: Writing to a specified NSUserDefaults domain
  • Index(es):
    • Date
    • Thread