Discussion:
iCloud does not appear on open, save or move to dialogs for Mac Document based app
Jim McGowan
2018-11-19 08:16:51 UTC
Permalink
Hi,

I posted this on the Developer Forums a week ago, but unfortunately i didn’t receive any replies. Perhaps someone here can help.

I have an existing Core Data document based app, my document class is a sublcass of NSPersistentDocument, and I use an XML store type. My next update will move to being Mac App Store exclusive, so I can take advantage of iCloud features and I want to add iCloud Documents.

I turned on the iCloud Capability in XCode, and checked the "iCloud Documents" option under "Services:" I'm using the default container option. I can see the container has been created in the local file system, and I can also see in listed on developer.apple.com under my account > Certifiates, Identifiers & Profiles > iCloud Containers.

In my App Delegate's +initialize method I use GCD to dispatch a call to [[NSFileManager defaultManager] URLForUbiquityContainerIdentifier:nil] on a background queue. This method correctly returns the URL for the container.

However, when I run my app, I don't see the iCloud container listed in either the sidebar or popup menu in open and save dialogs, and neither do I see it in popup menu in the Move To... dialogue.

Am I missing some additional steps?

Thanks,
Jim
_______________________________________________

Cocoa-dev mailing list (Cocoa-***@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/gegs%40ml-in.narkive.net

This email sen
Rob Petrovec
2018-11-19 18:25:40 UTC
Permalink
Does it show up in the Finder’s Sidebar? Do you have the iCloud Drive checkbox checked in the Finder Preferences -> Sidebar section? If it is disabled there it won’t show up in the Finder or open/save dialogs.

—Rob
Post by Jim McGowan
Hi,
I posted this on the Developer Forums a week ago, but unfortunately i didn’t receive any replies. Perhaps someone here can help.
I have an existing Core Data document based app, my document class is a sublcass of NSPersistentDocument, and I use an XML store type. My next update will move to being Mac App Store exclusive, so I can take advantage of iCloud features and I want to add iCloud Documents.
I turned on the iCloud Capability in XCode, and checked the "iCloud Documents" option under "Services:" I'm using the default container option. I can see the container has been created in the local file system, and I can also see in listed on developer.apple.com under my account > Certifiates, Identifiers & Profiles > iCloud Containers.
In my App Delegate's +initialize method I use GCD to dispatch a call to [[NSFileManager defaultManager] URLForUbiquityContainerIdentifier:nil] on a background queue. This method correctly returns the URL for the container.
However, when I run my app, I don't see the iCloud container listed in either the sidebar or popup menu in open and save dialogs, and neither do I see it in popup menu in the Move To... dialogue.
Am I missing some additional steps?
Thanks,
Jim
_______________________________________________
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
https://lists.apple.com/mailman/options/cocoa-dev/petrock%40mac.com
_______________________________________________

Cocoa-dev mailing list (Cocoa-***@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/gegs%40ml-in.narkive.net

This email sent to gegs
Jim McGowan
2018-11-20 03:27:57 UTC
Permalink
H Rob,

Yes, iCloud Drive shows up in the Finder sidebar an also in the open & save dialogues in my app. However, the app container does not show up in my open & save dialogues (the way that other apps containers, such as Pages, etc, show up in their own open save dialogues)

Jim
Post by Rob Petrovec
Does it show up in the Finder’s Sidebar? Do you have the iCloud Drive checkbox checked in the Finder Preferences -> Sidebar section? If it is disabled there it won’t show up in the Finder or open/save dialogs.
—Rob
Post by Jim McGowan
Hi,
I posted this on the Developer Forums a week ago, but unfortunately i didn’t receive any replies. Perhaps someone here can help.
I have an existing Core Data document based app, my document class is a sublcass of NSPersistentDocument, and I use an XML store type. My next update will move to being Mac App Store exclusive, so I can take advantage of iCloud features and I want to add iCloud Documents.
I turned on the iCloud Capability in XCode, and checked the "iCloud Documents" option under "Services:" I'm using the default container option. I can see the container has been created in the local file system, and I can also see in listed on developer.apple.com under my account > Certifiates, Identifiers & Profiles > iCloud Containers.
In my App Delegate's +initialize method I use GCD to dispatch a call to [[NSFileManager defaultManager] URLForUbiquityContainerIdentifier:nil] on a background queue. This method correctly returns the URL for the container.
However, when I run my app, I don't see the iCloud container listed in either the sidebar or popup menu in open and save dialogs, and neither do I see it in popup menu in the Move To... dialogue.
Am I missing some additional steps?
Thanks,
Jim
_______________________________________________
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
https://lists.apple.com/mailman/options/cocoa-dev/petrock%40mac.com
_______________________________________________

Cocoa-dev mailing list (Cocoa-***@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/gegs%40ml-in.narkive.net

This email sent to ***@ml

Loading...