• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
iCloud On OSX - Cannot save changes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: NSTextFieldCell not getting disabled
  • Next by Date: NSPopUpButton Binding Frustration
  • Previous by thread: NSTextFieldCell not getting disabled
  • Next by thread: Re: iCloud On OSX - Cannot save changes
  • Index(es):
    • Date
    • Thread