That method was fixed as follows in Pharo 8
PasteUpMorph>>#dropFiles: anEvent
"Handle a number of dropped files from the OS.
TODO:
- use a more general mechanism for figuring out what to do with
the file (perhaps even offering a choice from a menu)
- remember the resource location or (when in browser) even the
actual file handle"
| numFiles |
numFiles := anEvent contents.
1 to: numFiles do: [:i | | aFileReference handler |
aFileReference := FileReference requestDropReference: i.
handler := ExternalDropHandler lookupExternalDropHandler:
aFileReference.
handler ifNotNil: [ aFileReference binaryWriteStreamDo: [
:stream | handler handle: stream in: self dropEvent: anEvent ] ]].
> On 27 Jun 2019, at 22:41, Hilaire <[email protected]> wrote:
>
> Hi,
>
> PasteUpMorph>>dropFiles:
>
> looks wrong in P7.
>
> A Write stream is created while a Read stream is expected.
>
> Result: drag and drop of a sketch file does not work anymore in DrGeo.
>
> Should it be a binary read stream or just a read stream?
>
> With a read stream it works fine for DrGeo, not sure about other.
>
> Enclosed .st of the edited method.
>
> Please, some one with know fill a bug ticket with the proposed fix.
>
> Thanks
>
> Hilaire
>
> --
> Dr. Geo
> http://drgeo.eu
>
> <PasteUpMorph-dropFiles.st>