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 trialZach Studdiford
6,212 PointsError in Inserting Managed Object
When I ran the Diary Application and clicked "Done", it gave me an error, and I cannot figure out what the problem is and how to fix it.
The error message says the reason is that "the model used to open the store is incompatible with the one used to create the store".
Mahesh Babu
3,402 PointsOkay if you are using the latest version of Xcode, the Bar Button Item is too cranky to go in the right place if we add it as the Teacher did, We have to open the Document Outline and explicitly add it in the Table View and for the action to be safe you can drag it from the Document outline to your NewEntryViewController.m file. Try this once and let me know or else i will help you out !
Kyle Case
44,857 PointsHello, I had the same issue. For me, I was typing the code as it was shown in the video. When updating the applictionDocumentsDirectory, my autocomplete inserted: NSDocumentationDirectory, when it should be NSDocumentDirectory.
-----CORRECT ANSWER----- NSURL *url = [[[NSFileManager defaultManager] URLsForDirectory:NSDocumentDirectory inDomains:NSUserDomainMask] lastObject];
-----WRONG ANSWER----- NSURL *url = [[[NSFileManager defaultManager] URLsForDirectory:NSDocumentationDirectory inDomains:NSUserDomainMask] lastObject];
Melynda Scharf
4,448 PointsMelynda Scharf
4,448 PointsHi Kirk, I'm not sure if there is a good way to share the code you are using, but if there is, that could be helpful. It sounds like you might have modified the data model. Maybe added an attribute or something like that? Or maybe a small typo between the data model and the store?