iCloud On OSX - Cannot save changes
iCloud On OSX - Cannot save changes
- Subject: iCloud On OSX - Cannot save changes
- From: April <email@hidden>
- Date: Sun, 29 Jan 2012 23:26:41 -0700
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 (email@hidden)
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:
This email sent to email@hidden