• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSFileManager - Incompatible persistent store
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSFileManager - Incompatible persistent store
      • From: Mike Abdullah <email@hidden>
  • Prev by Date: Re: Does UIStoryboard know how to find the ~ipad version automatically?
  • Next by Date: Re: NSArrayController KVO question...
  • Previous by thread: Re: NSArrayController KVO question...
  • Next by thread: Re: NSFileManager - Incompatible persistent store
  • Index(es):
    • Date
    • Thread