OSSH Pty Ltd is owned by me, Duncan Groenewald. In appreciation for all those useful web sites providing free information I decided to create this site and from time to time publish information so that others may learn from my mistakes (or successes) as the case may be.
You can contact me at duncan.groenewald@ossh.com.au
Found your iCloud sample. I’m still going through it but was wondering if you had the OSX sample version to accompany the iOS sample.
I currently have an OSX NSPersistantDocument App thats uses a Binary Core Data persistent store. I’m trying to find a way to create an iOS companion app that can open this save file.
I’ve found several tutorials on the multi-device iOS integration, but nothing that touches on including the OSX side of the equation.
Any pointers would be greatly appreciated.
No sample app for OS X at this time, sorry. I’ll post some of the OS X code for migrating a store to iCloud shortly. NSPersistentDocument is kind of messy because it already has file based iCloud sharing, not transaction log sharing, so you have to disable this. The current version apps (iWallet and iProject) use this file based approach.
I have just posted a OSX sample app – be warned this is currently hardcoded to use iCloud.
Hello Duncan, I found your code for creating a nice, simple Core Data backup and had a few questions; it seems to be missing some methods such as:
– saveContext,
– openPersistentStore,
– backupCurrentStoreWithNoCheck
and I haven’t a clue what they contain. Could you enlighten me or point me to where they exist? I (and others) would appreciate it. BTW, I have gotten the backup portion to work correctly. Is there someplace where I can “dump” the code when I get it all up and working?
Never mind… I found them…
What files have you got? Swift or Obj-c and are these the latest versions?
Hi Duncan… not sure you got my later email, but I found the methods in the sample code… thank you for responding tho’…
Regards, Rolf
OSSH wrote: >
I have the latest version and found all the files there… I’m just using it as a guide right now; my requirements are to go to the Documents directory at the moment, which I’m having problems with because the directory changes with each new execution of the app. If I can’t get this sorted out soon (like this week), I’m going to go to iCloud, which I will again use your code as a guide. Thank you for publishing it; all of us who have used it appreciate it. 😀