I've been doing a few tutorials on Core Data for the iPhone, and none of them seem to work. Luckily, one of the tutorial sites provided source code and one problem that kept popping up (and is hopefully the explanation as to why said tutorials weren't working), was this line:
@synthesize window = _window;
About half a dozen synthesizes like this would auto-generate in my tableview files, but none of the tutorials used them, which caused a ton of errors for me. The line in the working source code is:
@synthesize window;
So, why is this? I've read online that the first version of @synthesize
is for memory management purposes, but no one seems to be using it.