I’m aware that iOS has API’s to integrate iCloud for the apps.
Can I integrate iCloud in mac apps as well?
Will the implementation be different for Mac apps to integrate iCloud?
If Yes, are there any tutorials etc or reference websites?
I’m aware that iOS has API’s to integrate iCloud for the apps. Can I
Share
Yes. iCloud is available on the Mac.
But Apple’s documentation for this topic still isn’t very complete. The only official resources I could find where the WWDC 2011 session 107 video and some notes in “What’s new in Mac OS X”
When Lion & iCloud still were under NDA I posted my findings in Apple’s devforums.
This is is an edited version of this post:
I am using a modified version of the WWDC 2011 Session 107 code. (transcribed from the video)
I had to remove the manual instantiation of NSFileCoordinator to get the sample working (the speaker mentions that the coordinator “might not be needed in the future”):
The above IBAction is connected to a NSMenuItem that checks if the document is already in iCloud or if it needs to be uploaded:
Checklist for non-code tasks that are necessary to get iCloud document storage working: