Objective C, Core Data issue

Posted by Jaime Rae on Stack Overflow See other posts from Stack Overflow or by Jaime Rae
Published on 2010-04-14T20:57:10Z Indexed on 2010/04/14 21:13 UTC
Read the original article Hit count: 457

Filed under:
|
|

I'm following a tutorial in "More iPhone 3 Development. In the code, they have a line: NSManagedObjectContext *managedObjectContext = appDelegate.managedObjectContext;

I get an error: "accessing unknown 'managedObjectContext' getter method" on that line.

I've downloaded his sample code and his program runs fine with that line of code. I've tried rewriting the code and I've even copied and pasted his code into my program, but I still get the error.

I am using the newest SDK, and I'm wondering if something might have changed so this getter method doesn't work anymore, but I do not get any warning about deprecation.

Does anyone know what is going on, or better yet, a better way to write this line and not get the error.

Thanks LadyDev

© Stack Overflow or respective owner

Related posts about core

Related posts about data