Skip to content

Commit

Permalink
dragndrop ansatz
Browse files Browse the repository at this point in the history
  • Loading branch information
baerlach-git committed Jun 21, 2022
1 parent 5f9305e commit c51ff8a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"class" : {
"newWithView:" : "SC 8/5/2021 19:45" },
"instance" : {
"acceptDroppingMorph:event:" : "PM 7/16/2021 09:12",
"acceptDroppingMorph:event:" : "JS 6/21/2022 20:59",
"clearContents" : "JF 5/27/2022 11:37",
"currentMorph" : "TB 6/23/2021 19:12",
"currentMorph:" : "TB 6/23/2021 20:06",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
as yet unclassified
handleDropFiles: anEvent
"Handle a drop from the OS."

(self model class canUnderstand: #categories)
ifTrue: [anEvent wasHandled: true. ^self]
ifFalse:[Transcript show:( FileStream requestDropStream: (anEvent contents)) fullName].
anEvent wasHandled: true.
self dropFiles: anEvent.


"FileDirectory requestDropDirectory:"
"FileStream requestDropStream:"
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
"class" : {
},
"instance" : {
"handleDropFiles:" : "JS 6/21/2022 20:52",
"handleMouseUp:" : "JF 5/30/2022 14:53" } }

0 comments on commit c51ff8a

Please sign in to comment.