Strange behavior of "NSUserDefaults"
Strange behavior of "NSUserDefaults"
- Subject: Strange behavior of "NSUserDefaults"
- From: Frank Blome <email@hidden>
- Date: Tue, 20 Aug 2002 22:48:17 +0200
Hello,
I am totally confused. I use the functions for the standardUserDefaults
1000 times without problems. But now, in one project the function:
- (IBAction) setVersionLookUp:(id)sender
{
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
[defaults setBool:[sender state] forKey:@"CheckVersion"];
}
tells me: "syntax error, found `forKey' " while compiling but I can
start the app after it.
If have even tried the code above in one line:
[[NSUserDefaults standardUserDefaults] setBool:[sender
state] forKey:@"CheckVersion"];
but the result is the same. It is basic work, but I can't fix this damn
syntax error...
Can just anybody tell me whats my fault?
Thank you,
Frank
_______________________________________________
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.