• 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
Re: Adding CalendarStore.framework changes managed object model version?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding CalendarStore.framework changes managed object model version?


  • Subject: Re: Adding CalendarStore.framework changes managed object model version?
  • From: Brad Willoughby <email@hidden>
  • Date: Tue, 25 Mar 2008 19:33:34 -0700

Thanks, Melissa.  That was it.

It looks like the template code generated by XCode in our AppDelegate from 2006 had this line:

managedObjectModel = [[NSManagedObjectModel mergedModelFromBundles: [allBundles allObjects]] retain];

Since we're using Leopard and Garbage Collection, I've changed it to the following and the error is now gone:

managedObjectModel = [NSManagedObjectModel mergedModelFromBundles:nil];

Cheers,
Brad
TinyPlanet Software, LLC
http://tinyplanetsoftware.com/

On Mar 25, 2008, at 6:11 PM, Melissa J. Turner wrote:
Brad -

At a guess, you're somehow pulling in CalendarStore.calmom into your model. This might happen if you're doing [NSManagedObjectModel mergedModelFromBundles: [NSBundle allBundles]], which is declared dangerous for just this reason.

+Melissa

On Mar 25, 2008, at 17:56, Brad Willoughby wrote:

When I add /System/Library/Frameworks/CalendarStore.framework to my Leopard Core Data application in XCode 3.0 and click Build & Run, I get the following error:

"The managed object model version used to open the persistent store is incompatible with the one that was used to create the persistent store."

This makes no sense to me. I have not touched my data model and can confirm that it has not changed via subversion's "svn status". I Googled and checked the cocoa-dev archives, but there's not much out there regarding the Calendar Store framework.

Any ideas as to why adding CalendarStore.framework is causing this Core Data error?

Cheers,
Brad
TinyPlanet Software, LLC
http://tinyplanetsoftware.com/
_______________________________________________

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


References: 
 >Adding CalendarStore.framework changes managed object model version? (From: Brad Willoughby <email@hidden>)
 >Re: Adding CalendarStore.framework changes managed object model version? (From: "Melissa J. Turner" <email@hidden>)

  • Prev by Date: Re: Ephemeral Changes
  • Next by Date: Re: Ephemeral Changes
  • Previous by thread: Re: Adding CalendarStore.framework changes managed object model version?
  • Next by thread: NSOutlineView "sliding" animation
  • Index(es):
    • Date
    • Thread