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 (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/koko%40highrolls.net
This email sent to k...@highrolls.net
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com