• 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
NSPersistentDocument Merged Model Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSPersistentDocument Merged Model Problem


  • Subject: NSPersistentDocument Merged Model Problem
  • From: Mike Burns <email@hidden>
  • Date: Mon, 24 Sep 2007 20:01:16 -0400

Hello again list,

I've been encountering a strange problem with a Core Data/ NSPersistentDocument-based project I've been working on. I have two separate computers -- an iMac at work and then a MacBookPro at home. I work on my project in both locations. Today I worked on my project on the iMac (including some adjustments to my managed object model and some NSManagedObject subclasses code). By the end of the day, it was compiling and running fine on that computer.

I just brought it over to my mac book and all of the sudden it can't get past the following call in my NSPersistentDocument subclasses initWithType: override:

NSManagedObjectContext* managedObjectContext = [self managedObjectContext];

The error I get when that line is called is "Can't merge models with two different entities named 'Object'". But the thing is, I only have one managed object model in my project...what would it be trying to merge with? And why does the exact same project compile and run fine on my iMac and crash on my MacBookPro? This leads me to believe that is the cause ... any ideas?


_______________________________________________

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


  • Prev by Date: Re: [resolved] Re: really weird move file problem -- bonus points to Jon Hendry
  • Next by Date: Re: NSPersistentDocument Merged Model Problem [SOLVED]
  • Previous by thread: How to disable non-roman input in NSTextField
  • Next by thread: Re: NSPersistentDocument Merged Model Problem [SOLVED]
  • Index(es):
    • Date
    • Thread