One Quickie


Resetting user defaults (General->General)
Sometimes you just want to blow away all your app's defaults and return to the factory default settings. RooSwitch is a great way to do it for your app for testing or debugging. Or if you need to do it in code:
    NSUserDefaults *defs = [NSUserDefaults standardUserDefaults];

    NSString *appDomain = [[NSBundle mainBundle] bundleIdentifier];
    [defs removePersistentDomainForName: appDomain];



borkware home | products | miniblog | rants | quickies | cocoaheads
Advanced Mac OS X Programming book

webmonster@borkware.com