views:

95

answers:

1

Trying to follow some basic examples and getting stuck by this code that is EXACTLY like the example I am following:

[[NSUserDefaults standardUserDefaults] setObject:@"Sample Text" forKey:kWordsOfWisdom];

gives me the error:

expected ']' before ';' token
+2  A: 

I had this:

#define kWordsOfWisdom @"Sample Text";

that ; on the end was the problem.

Slee