• 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: set defaults in another application?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: set defaults in another application?


  • Subject: Re: set defaults in another application?
  • From: email@hidden
  • Date: Thu, 1 Jul 2010 19:01:24 -0600

forget the set part:

[dflts setPersistentDomain:[NSDictionary dictionaryWithObjects:objects forKeys:keys] forName:@"com.company.applicationA"];


On Jul 1, 2010, at 6:49 PM, Angelo Chen wrote:

Hi,
In application A, I use following code to set some settings:
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];NSData *defaultSettings = [defaults objectForKey : EXPORT_SETTINGS];
ExportSettings *es = [[ExportSettings alloc] init];NSData *settings = [es getExportSettings: defaultSettings];[es release];if (settings) [defaults setObject:settings forKey:EXPORT_SETTINGS]; Now I'd like to access and set the settings in application B to the defaults in A, possible? thanks,
Angelo




_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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)

Please 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: 
 >set defaults in another application? (From: Angelo Chen <email@hidden>)

  • Prev by Date: Re: set defaults in another application?
  • Next by Date: Re: [KINDA SOLVED] Core Data : Save As : Object temporarily missing...
  • Previous by thread: Re: set defaults in another application?
  • Next by thread: Using NSImage to render the view
  • Index(es):
    • Date
    • Thread