Support for drag file onto Desktop app icon?

Hi CL Team:

Just wondering if there is any plan to support “importing” documents into Desktop builds by dragging files onto a Corona-built desktop app’s icon? I’m working on a little helper app that converts CSV data into lua tables and allows the user to visually manipulate that data before ultimately exporting it again in a different format. At the moment I handle import by pasting the CSV file’s path into a text field, but I’d love the ability to drag a file onto my app’s icon. Ideally that would trigger some sort of Runtime event with the dragged file’s contents being passed in as part of the event table. Not unlike a URL scheme launch argument. Is this on the roadmap at all?

If it can get baked in, I’ll send a box of cookies to the office for you guys. You’d have earned it. :slight_smile:

Thanks,

Jason

That turns out to be an easy enhancement and will be in a Daily Build next week after the dust settles from the Public Release.

For the record, I checked in the change before I saw any mention of cookies :slight_smile:  The thought is appreciated but cookies are not necessary.

Hi Perry - get ready for cookies!

Was totally thrilled to see this in today’s daily build notes:

  • OS X - allow file icons to be dropped on Corona SDK for OS X apps - no casenum

 

Woohoo! Any hints on usage? I skimmed the daily build API docs looking for something that might be related to this, but if it’s there I missed it. Thanks again!

It’s in the usual place: https://docs.coronalabs.com/daily/guide/distribution/osxBuild/index.html#custom-document-types

That turns out to be an easy enhancement and will be in a Daily Build next week after the dust settles from the Public Release.

For the record, I checked in the change before I saw any mention of cookies :slight_smile:  The thought is appreciated but cookies are not necessary.

Hi Perry - get ready for cookies!

Was totally thrilled to see this in today’s daily build notes:

  • OS X - allow file icons to be dropped on Corona SDK for OS X apps - no casenum

 

Woohoo! Any hints on usage? I skimmed the daily build API docs looking for something that might be related to this, but if it’s there I missed it. Thanks again!

It’s in the usual place: https://docs.coronalabs.com/daily/guide/distribution/osxBuild/index.html#custom-document-types