• 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
Sync services, core data and entity inheritance
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Sync services, core data and entity inheritance


  • Subject: Sync services, core data and entity inheritance
  • From: Martin Hewitson <email@hidden>
  • Date: Sat, 8 Jan 2011 17:30:32 +0100

Dear List,

I have implemented sync services in an app which uses core data. The model has entities which have parent entities. For example, there is a Meeting entity which subclasses a Category entity. When I start the app I get the following error from sync services:

|CoreDataSync|Error| Exception in synchronize: Sync failed: ISyncInvalidArgumentsException [ISyncConcreteSession pushChangesFromRecord:withIdentifier:]: you can't change the record's entity name from com.bobsoft.agenda2.Category to com.bobsoft.agenda2.Meeting in {
   children =     (
       "x-coredata://6BD322AB-EFBA-4E8A-8B47-62EA708EC09D/Session/p133";,
       "x-coredata://6BD322AB-EFBA-4E8A-8B47-62EA708EC09D/Session/p132";
   );
   "com.apple.syncservices.RecordEntityName" = "com.bobsoft.agenda2.Meeting";
   end = "2011-01-03 16:00:00 +0100";
   isExpanded = 1;
   location = unknown;
   name = "New Meeting 05";
   parent =     (
       "x-coredata://6BD322AB-EFBA-4E8A-8B47-62EA708EC09D/Category/p131";
   );
   position = 0;
   sortIndex = 1;
   start = "2011-01-03 08:00:00 +0100";
   themes =     (
       "x-coredata://6BD322AB-EFBA-4E8A-8B47-62EA708EC09D/Theme/p136";,
       "x-coredata://6BD322AB-EFBA-4E8A-8B47-62EA708EC09D/Theme/p138";,
       "x-coredata://6BD322AB-EFBA-4E8A-8B47-62EA708EC09D/Theme/p134";,
       "x-coredata://6BD322AB-EFBA-4E8A-8B47-62EA708EC09D/Theme/p135";
   );
}

My client description is attached, and a screenshot of the data model can be found here:

files.me.com/martinhewitson/35oxp5

Is it possible to sync entities which are subclasses of other entities?

Best wishes,

Martin







~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Martin Hewitson
Albert-Einstein-Institut
Max-Planck-Institut fuer
    Gravitationsphysik und Universitaet Hannover
Callinstr. 38, 30167 Hannover, Germany
Tel: +49-511-762-17121, Fax: +49-511-762-5861
E-Mail: email@hidden
WWW: http://www.aei.mpg.de/~hewitson
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~





_______________________________________________

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: LOCATING MEDIA FILES IN MACINTOSH
  • Next by Date: Re: button states usually always disabled
  • Previous by thread: Re: button states usually always disabled
  • Next by thread: NSFileWrapper serializedRepresentation bloat?
  • Index(es):
    • Date
    • Thread