• 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
registering -persistentDomainForName
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: St00pid newbie question about sending URLs to the default Web browser (From: Jim Correia <email@hidden>)

  • Prev by Date: Re: Dynamic View Creation
  • Next by Date: NSImage from Web: Resolution
  • Previous by thread: Re: St00pid newbie question about sending URLs to the default Web browser
  • Next by thread: NSTableView delete multiple selected rows
  • Index(es):
    • Date
    • Thread