Re: NSUserDefaults not resetting....
Re: NSUserDefaults not resetting....
- Subject: Re: NSUserDefaults not resetting....
- From: Craig Phillips <email@hidden>
- Date: Wed, 14 Sep 2005 00:05:14 +1000
On 13/09/2005, at 23:10, Aaron Wallis wrote:
Hey all...
Just a quick question about the NSUserDefaults object.
I have a UserDefault variable which is a singleton set in the header:
NSUserDefaults * preferenceData;
Now, when I try to reset the preferences [ through a button on the
interface ] using the following code:
- ( void ) resetPreferences
{
NSLog(@"reset preferences - this is not working !!!");
[ preferenceData resetStandardUserDefaults ];
resetStandardUserDefaults is a Class method, but here you are calling
it against an instance that I assume you've gotten earlier...
[ self setDefaultPreferences ];
}
Where setDefaultPreferences is a method that sets up the default
prefs.
This code is returning the error:
NSUserDefaults may not respond to -resetStandardUserDefaults?
Any idea what im doing wrong?
I would have thought this would have worked scenes its in the
documentation!?
Cheers
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden