User defaults not setting...
User defaults not setting...
- Subject: User defaults not setting...
- From: email@hidden
- Date: Thu, 6 May 2004 13:57:06 -0700
ok so i have a main controller then i have a controller for rules in my
app
this code is in the rules controller
- (void) awakeFromNib;
{
[self restoreDefaults];
}
- (void) restoreDefaults;
{
NSMutableDictionary *defaults = [NSMutableDictionary dictionary];
NSMutableDictionary *ruleDict = [NSMutableDictionary dictionary];
[ruleDict setObject:@"~/Library/Application Support/AddressBook/"
forKey:@"path"];
[defaults setObject:ruleDict forKey:@"Address Book Contacts"];
[[NSUserDefaults standardUserDefaults] setObject:defaults
forKey:@"Default Backup Rules"];
[[NSUserDefaults standardUserDefaults] synchronize];
}
it never gets called? whats up?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.