Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: Update documentation on use of retrieveCloudDocumentWithName #86

Open
Seoras opened this issue Sep 13, 2015 · 1 comment
Open
Labels
Milestone

Comments

@Seoras
Copy link

Seoras commented Sep 13, 2015

The documentation section covering retrieveCloudDocumentWithName should be updated with a warning that it is the completion block's responsibility to close the document once opened otherwise deleting it at a later point in time will result in the file auto-magically re-appearing.

I was ready for jumping off a bridge after more than a day wasted on trying to work out why I couldn't delete anything before I stuck the line below in the completion handler right after I'd accessed the file data.

[cloudDocument closeWithCompletionHandler:nil]; 
@neowinston
Copy link

Thanks for sharing this important information!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants