From: Pierce T. W. I. <pi...@tw...> - 2008-04-04 16:17:47
|
On Apr 4, 2008, at 12:30 AM, Rupert BARROW wrote: > Hi, > > I have been doing SyncServices for some time in RubyCocoa : in Tiger, > I used to use Harmonize's syncservices.rb, now replaced by > OSX.require_framework 'SyncServices' in Leopard's RC. > > Up to now, I have been syncing data into Apple's Schema : Contacts, > Phone Numbers, Addresses, Events, Calendars, etc. > > I have just started testing syncing data into my own SyncSchema : my > SyncSchema is registered, and gets updated properly when I add/modify > attributes (I see it in Syncrospector); however, on my first > SLOW_SYNC, my RubyCocoa app crashes with an "illegal instruction" when > trying to write this new data into the sync engine. RC debugging gives > no more details. > > Has anyone done this before ? Yes. The new version of Frictionless: http://www.twinforces.com/frictionless/ does this. I don't do iCal Event/Calendar syncing though, because I would need to hugely extend iCals Event model, which I've been avoiding. > Any issues ? Yes. Do you have any kind of backtrace exception to start with? Meanwhile, add this to all your objects: def objectEnumerator print "Object Enumerator called\n" end I don't know why, but Sync Services likes to call this. Are you using CoreData as well? In Leopard, syncing when you start from a Core Data model is much simpler. Pierce |