Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: ->Accepting Document Drops?



Permlink Replies: 5 - Last Post: Nov 24, 2017 1:56 AM Last Post By: Paul Smith Threads: [ Previous | Next ]
Steve Jordi

Posts: 111
Registered: 4/19/98
->Accepting Document Drops?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 16, 2014 1:30 AM
Hi,
My iOS app doesn't show in the iTunes App section where you can
drag&drop files in order to add them to the app.

Is there any kind of example or guidance for implementing such
functionalities?

Thanks for any advice
--
Steve JORDI - MSc in Geophysics/Volcanology
Geneva, Switzerland / Portland, OR, USA
Ronald Klitsche

Posts: 326
Registered: 8/26/01
Re: ->Accepting Document Drops?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 16, 2014 4:02 AM   in response to: Steve Jordi in response to: Steve Jordi
My iOS app doesn't show in the iTunes App section where you can
drag&drop files in order to add them to the app.

You have to add a key in the project options version info:
Add new key "UIFileSharingEnabled" with value "YES"
Now you can share files via iTunes.

Ronald
Sebastian Zierer

Posts: 182
Registered: 4/3/00
Re: ->Accepting Document Drops?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 16, 2014 4:57 AM   in response to: Ronald Klitsche in response to: Ronald Klitsche
Ronald Klitsche wrote:
You have to add a key in the project options version info:
Add new key "UIFileSharingEnabled" with value "YES"

The trick is that you should add UIFileSharingEnabled as boolean, not as string. Unfortunately the IDE doesn't appear to support that yet. So you have to manually patch the info.plist file. iTunes is forgiving if this is a string, but some third party applications that make accessing the files on the iPad a lot more comfortable require UIFileSharingEnabled as boolean.
Ronald Klitsche

Posts: 326
Registered: 8/26/01
Re: ->Accepting Document Drops?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 16, 2014 5:40 AM   in response to: Sebastian Zierer in response to: Sebastian Zierer
Unfortunately the IDE doesn't appear to support that yet.

Yes, the plist handling of Delphi is very limited.

iTunes is forgiving if this is a string,

Yes it works. I assume the iOS is parsing the plist files, not iTunes.

Ronald
Paul Smith

Posts: 1
Registered: 3/8/17
Re: ->Accepting Document Drops?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Nov 24, 2017 1:56 AM   in response to: Ronald Klitsche in response to: Ronald Klitsche
Ronald Klitsche wrote:
Unfortunately the IDE doesn't appear to support that yet.

Yes, the plist handling of Delphi is very limited.

iTunes is forgiving if this is a string,

Yes it works. I assume the iOS is parsing the plist files, not iTunes.

Ronald

I struggled with this a little as STRING worked fine when testing on iOS device, but failed when uploading to Apple Test Flight.
I followed the [Delphi Help to Customise info.plist|http://docwiki.embarcadero.com/RADStudio/Tokyo/en/Customizing_Your_info.plist_File] , and eventually found the answer... add
<key>UIFileSharingEnabled</key><true/>

to info.plist.TemplateiOS.xml
Steve Jordi

Posts: 111
Registered: 4/19/98
Re: ->Accepting Document Drops?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Oct 16, 2014 12:29 PM   in response to: Steve Jordi in response to: Steve Jordi
Thanks all,

That's exactly what I need!!!

--
Steve JORDI - MSc in Geophysics/Volcanology
Geneva, Switzerland / Portland, OR, USA
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02