[Vm-dev] URL drop events on MacOS

John M McIntosh johnmci at smalltalkconsulting.com
Tue Jan 5 17:06:45 UTC 2021


Yes

Sent from ProtonMail Mobile

On Tue, Jan 5, 2021 at 08:55, Eliot Miranda <eliot.miranda at gmail.com> wrote:

> Hi John,
>
>> On Jan 4, 2021, at 9:43 PM, John M McIntosh <johnmci at smalltalkconsulting.com> wrote:
>
>>  When we did Sophie we just passed every reference to an asset as a URL so a file: or a url: or a memoryFile: which was very handy to push a blob of data as a file or zip entity. The concrete class for streaming the URL would do the right thing.
>
> Good to know; thanks. That suggests to me I should add a primitiveDropRequestURL/dropRequestURL primitive to the DropPlugin and that that would answer results in url format, prepending file:// for files etc. primitiveDropRequestFile would remain for backwards compatibility. Make sense?
>
>> Sent from ProtonMail Mobile
>>
>> On Mon, Jan 4, 2021 at 20:01, Eliot Miranda <eliot.miranda at gmail.com> wrote:
>>
>>> Hi All,
>>>
>>> I'm plumbing in support for launching the macos application via URL scheme drop events/apple events. I'm asking for review. I think the right way to go is to piggy back off of EventTypeDragDropFiles rather than add another kind of event. If so there's a fork in the road. Either use SQDragDrop (see sq.h) and dropRequestFileName and have dropRequestFileName answer a name prefixed with 'url:', or add e.g. SQDropUrl and add primitiveDropRequestURL/dropRequestURL to the DropPlugin. Opinions?
>>> _,,,^..^,,,_
>>> best, Eliot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20210105/988ad9c0/attachment-0001.html>


More information about the Vm-dev mailing list