On iOS iCloud is easy. On OSX I don't know what the problem is. Ok.. First I had a document on my computer. The using the setUbiquidous method I moved it to iCloud. It is on iCloud, and readable. But thats the problem. I have read only access to it from the Mac App.
When I open the document I use : self.document = [[NTPDocument alloc]initWithContentsOfURL:iCloudURL ofType:@"MyDataType" error:&err]; NTPDocument is my subclass of NSDocument. and only implements the dataOfType and readFromData. It also returns YES for autosaves in place. And that's hitch #1. When It attempts to autosave I get an error window in the app that it could not auto save the document because I do not have permission. When I try the saveToURL:ofType:forSaveOperation:completionHandler: I get an "Unimplemented core routine" error (code -4) I have absolutely no clue what this means and cannot for the life of me find the information in the documentation on how to open the file for read/write access. I cannot find a flag or entitlement anywhere that I am missing for allowing me to write to the icloud document... I have attempted to just use [self.document saveDocument:nil] out of desperation but nothing saves, and no error. The main thing being that no matter what way I try to save, my document is never asked to encode the document data. I'm at a loss... Is there possibly an example of working code? Or some part of the documentation that I've not found? I foolishly thought this would be a simple matter of porting my iOS code... If some one has gotten iCloud working for them could you please help? April. _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com