DOESN'T RESTORE PREFS UNLESS APP IS QUIT.
DOESN'T RESTORE PREFS UNLESS APP IS QUIT.
- Subject: DOESN'T RESTORE PREFS UNLESS APP IS QUIT.
- From: email@hidden
- Date: Wed, 4 Feb 2004 10:43:53 EST
I have the following routine that is exicuted when the "Apply" button is
pressed.
_______________________________________________
- (IBAction)savePrefs:(id)sender
{
[[NSUserDefaults standardUserDefaults] setObject:[myPopUp
titleOfSelectedItem] forKey:@"Active Device"];
[[NSUserDefaults standardUserDefaults] setInteger:[allowUSB state] forKey:
@"Allow USB"];
[[NSUserDefaults standardUserDefaults] setInteger:[enableAtStart state]
forKey:@"Enable At Start"];
}
_______________________________________________
However, if I don't click the "Apply" button and re-enter the preference at a
later time, it doesn't resorts back to the saved prefs, how do I force this
without quiting the app?
_______________________________________________
Best regards,
Mr. Dale Walsh
_______________________________________________
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.