> On Jun 20, 2017, at 5:29 PM, Kyle Sluder <[email protected]> wrote:
> 
> On Tue, Jun 20, 2017, at 03:40 PM, [email protected] wrote:
>> I'm trying out the new UIDocumentBrowserViewController in iOS 11 (using
>> the iPad simulator). I can get it to create a new document (which is a
>> file package) for my app, but tapping on the document in the
>> UIDocumentBrowserViewController does not cause the delegate method
>> documentBrowser(_ controller: UIDocumentBrowserViewController,
>> didPickDocumentURLs documentURLs: [URL]) to get called.
>> 
>> It does get called for another document type that is a flat file (not a
>> file package), but it doesn't work with the file package document created
>> by NSFileWrapper.
>> 
>> Am I doing something wrong or is this a bug with file packages?
> 
> Please file a bug report and send me the number so I can ensure the
> correct team sees it.
> 
> Thanks,
> --Kyle
> 
>> 
>> Thanks,
>> Dave

I have one more idea to try and then if that doesn't work, I'll try to make a 
small sample project today and submit the bug report (and I'll email you the #).

The one thing I'm not certain about is the WWDC video shows making an empty 
file and adding it to the project as a resource and then copying it when the 
new document button is pressed. Do I just need to make an empty directory for 
that? My idea was to create an empty document with my app (in the simulator) 
and then copy that empty document directory to the Xcode project. Are there any 
special flags/attributes that need to be set on that directory to make it a 
correct package?

Thanks,
Dave Reed



_______________________________________________

Cocoa-dev mailing list ([email protected])

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/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to