NSFileManager - Incompatible persistent store
NSFileManager - Incompatible persistent store
- Subject: NSFileManager - Incompatible persistent store
- From: Tom Miller <email@hidden>
- Date: Wed, 21 Nov 2012 16:16:29 -0500
I'm working with some code that accesses a data model in Xcode. String data
is written to an xml file in the app (Mac) and displayed in a list.
The inputted text is saved as body text and title. The app compiles but I
receive a warning upon launch,
*The managed object model version used to open the persistent store is
incompatible with the one that is used to create the persistent store.*
The app launches and I'm able to save (kinda) the inputted text, add title,
and view from a list of created titles/body text. The only problem is
the inputted text is not saved and reopened once the app launches again.
I'm assuming this has to be because of the persistent store.
I receive a warning in Xcode about this line of code dealing with the file
manager,
fileManager = [NSFileManager defaultManager];
applicationSupportFolder = [self applicationSupportFolder];
if ( ![fileManager fileExistsAtPath:applicationSupportFolder
isDirectory:NULL] ) {
[fileManager createDirectoryAtPath:applicationSupportFolder
attributes:nil];
}
--
-
Tom Miller
email@hidden
pxlc.me
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden