registering -persistentDomainForName
registering -persistentDomainForName
- Subject: registering -persistentDomainForName
- From: Rosyna <email@hidden>
- Date: Sat, 15 Dec 2001 22:23:42 -0700
Is it possible to use registerDefaults: with a user default other
than standardUserDefaults?
sample...
NSUserDefaults* pers=[[NSUserDefaults alloc] init];
id noSetPrefs=[NSDictionary dictionaryWithObjectsAndKeys:
@"0",NSLocalizedString(@"Ignore RR",@""),
@"1",NSLocalizedString(@"Prefer Unix",@""),
NSLocalizedString(@"A deer, a female deer.",@""),
NSLocalizedString(@"D'oh",@""),
@"0",@"T",
nil];
NSLog(@"Hi");
[pers persistentDomainForName:PluginBundle]; //the plugins bundle
identifier.
self = [super init];
[pers registerDefaults:noSetPrefs];
[pers synchronize];
--
Sincerely,
Rosyna Keller
Technical Support/Holy Knight/Always needs a hug
Unsanity: Unsane Tools for Insane People