Drag-drop onto app icon

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
thatkeith
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 346
Joined: Mon Mar 01, 2010 7:13 pm
Location: London, UK
Contact:

Drag-drop onto app icon

Post by thatkeith » Tue Dec 05, 2017 9:53 pm

I have drag & drop working well in an app – dropping a JPEG or PNG into a target in the stack – but I'd really like to be able to do the same by dropping a (compatible) file onto the app icon, launching it if necessary and passing over the drop process to my regular scripts.

Is this: http://lessons.livecode.com/m/4071/l/15 ... le-onto-it the current state-of-the-art approach? Does anyone have any tips, or perhaps even an example stack?

k
Technical Writer, Meta
University Lecturer
Technical Editor, MacUser (1996-2015)
360 VR media specialist

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9824
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Drag-drop onto app icon

Post by FourthWorld » Tue Dec 05, 2017 10:21 pm

Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

thatkeith
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 346
Joined: Mon Mar 01, 2010 7:13 pm
Location: London, UK
Contact:

Re: Drag-drop onto app icon

Post by thatkeith » Tue Dec 05, 2017 10:29 pm

Very interesting resource - I'm going to have to delve through Ken's list of goodies!

For this particular challenge that link I posted still *looks* more relevant. But it also seems rather crazy to have to craft such dramatically different things for different platforms and add custom CFBundleTypeExtensions entries in .plist files within the app for Mac software.

:(
Technical Writer, Meta
University Lecturer
Technical Editor, MacUser (1996-2015)
360 VR media specialist

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9824
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Drag-drop onto app icon

Post by FourthWorld » Tue Dec 05, 2017 11:05 pm

thatkeith wrote:
Tue Dec 05, 2017 10:29 pm
But it also seems rather crazy to have to craft such dramatically different things for different platforms
Agreed. They should all be using the OpenDesktop spec that Linux uses. :)
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply

Return to “Talking LiveCode”