Re: Disable iCloud as a save destination
Re: Disable iCloud as a save destination
- Subject: Re: Disable iCloud as a save destination
- From: Quincey Morris <email@hidden>
- Date: Thu, 07 Mar 2013 17:32:45 -0800
On Mar 7, 2013, at 14:28 , Ben <email@hidden> wrote:
> I have an iCloud-enabled document-based app which can export the document contents into various other formats. It cannot open these formats.
>
> Is it possible to disable iCloud as a destination in an NSSavePanel for these exported files?
Is there a reason you can't examine the URL returned by -[NSSavePanel URL], and determine if it is (or is contained in) the URL returned by -[NSFileManager URLForUbiquityContainerIdentifier:]?
Or, in a similar vein, use a save panel delegate to prevent such a URL from being chosen in the first place?
Alternatively, you might be able to use NSURL's NSURLIsUbiquitousItemKey property to simplify the check for an iCloud URL, but it's not obvious from the documentation whether it gives the correct answer for a URL whose file doesn't exist yet.
_______________________________________________
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