Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

No visible @interface... ?

I'm working on the diary app to get a handle on Core Data. Sadly I keep running into problems. Right now, I'm getting an error that I don't really understand. In AppDelegate.m's applicationWillTerminate method there's a method that says [self saveContext].

After I moved all the core data methods like Ash says in the video, this method gives an error that says "No visible @interface for 'AppDelegate' declares the selector 'saveContext'".

What does this mean?

1 Answer

Ok - I resolved this error by putting the applicationWillTerminate method in the CoreDataStack.m file and importing AppDelegate.h. Is this a good way of handling this error or did I miss something?