Hi,
I’m testing the DragToFinder Xojo example and try to figure out how DragItem.Destination works (On Mac).
When testing it DragItem.Destination never seems to be set to a a folderitem… Am I missing something?
From the example project:
[code] Dim di As DragItem
Dim f As FolderItem
Dim d As Date
Dim tos As TextoutputStream
d = New Date
f = SpecialFolder.Temporary.Child(“test” + Format(d.TotalSeconds, “#”))
If f <> Nil Then
tos = TextOutputStream.Create(f)
tos.Write(“Howdy! Created by DragToFinder example.”)
tos.Close
di = New DragItem(Self, 0, 0, 100, 100)
di.FolderItem = f
di.Drag
If di.Destination <> Nil Then
If di.Destination IsA FolderItem Then
MsgBox(FolderItem(di.Destination).AbsolutePath)
End If
End If
Else
MsgBox(“Unable to get FolderItem for temporary file.”)
End If[/code]