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

iCloud syncing #1

Open
Ecco opened this issue Jan 20, 2012 · 2 comments
Open

iCloud syncing #1

Ecco opened this issue Jan 20, 2012 · 2 comments

Comments

@Ecco
Copy link

Ecco commented Jan 20, 2012

As requested here http://news.ycombinator.com/item?id=3487253

@au-phiware
Copy link
Contributor

👍

Is this simply a matter of adding it to the entitlements and using URLForUbiquityContainerIdentifier:? Or is there more to it?

I think I know what my next home project will be :D

@au-phiware
Copy link
Contributor

So this is not as straight forward as making a successful call to URLForUbiquityContainerIdentifier:...

Files in the ubiquity container can be read and written to but changes are not sync'ed. UIDocument appears to perform a lot magic in regards to saving, NSFileCoordinator must always be used to delete a document, netrw is unable to show a listing and NSMetadataQuery needs to be used to produce a correct listing. Not to mention opening files in iCloud and dynamic renaming of files.

It may be possible to write a simple autocommand that saves the contents of a file using UIDocument, but I think a lot of modification of netrw would be required for this feature to be useable.

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

No branches or pull requests

3 participants