• 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
User defaults not setting...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: User defaults not setting...
      • From: Larry Fransson <email@hidden>
  • Prev by Date: Preserving types in propertyLists
  • Next by Date: How to hide NSTableColumn using bindings
  • Previous by thread: Re: Preserving types in propertyLists
  • Next by thread: Re: User defaults not setting...
  • Index(es):
    • Date
    • Thread