Closed dfcarney closed 11 years ago
I should add that I'm using CoreData's "Allows External Storage" for image NSData. I'm not sure if this complicates things, but it does appear that the wholestore doesn't contain these blobs even though they're being synced. My guess is that they're kept in the syncchg files...
Hello David,
Sorry for the long response time, we were at WWDC last week and things are just starting to get back to normal.
If it were me I wouldn't be looking to use TICDS for this kind of task. While it would be possible to build a front end that displays the contents of the whole store file, the whole store file only represents a snapshot of the user's data. It the whole store file plus the sync change sets that make an up to date data set.
Additionally, at this time TICDS does not support syncing externally stored attributes.
Sorry if this wasn't the answer you were looking for.
Best, Michael
Hi Michael,
Hope you enjoyed WWDC! Thanks for the reply; I agree that TICDS isn't really a good match for what I'm trying to do. Regardless, I learned a lot by groking your code. Thanks for publishing the project.
Dave
Cheers Dave, good luck on your endeavor.
I'm interested in writing a service that can extract and display the contents of the store for a web-based (readonly) service. I.e. assume that a webserver has access to the Dropbox-based files, is it possible to parse the contents of the store and construct an ORM of the objects and data? Hypothetical example: I have an app that saves documents (that include text and images); what do I need to do to write a web server that can display these documents online?
One alternative is to use TICDS server-side (with some modifications to compile under UNIX, if possible) to massage things into an object model (or even JSON representation) and then build something on top of that. However, I'd like to cut out the middleman, so to speak, and write an adapter (in Ruby or Go, most likely) that can watch for directory/file changes and parse things itself.
There's some documentation here: https://github.com/nothirst/TICoreDataSync/wiki/Remote-File-Hierarchy Unfortunately, it's rather light on details of .syncchg files and whatnot.
Am I suicidal? Do you have any recommendations or tips on how to proceed? I've been digging through the source code, but any suggestions or advice you have would be greatly appreciated.