You find this example project in your Plugins Download as a Xojo project file within the examples folder: /MacExtras/Sparkle/UpdaterKit/Utilities/Drop file to see MD5 Checksum
Class App Inherits Application
Const kEditClear = "&Löschen"
Const kFileQuit = "Beenden"
Const kFileQuitShortcut = ""
EventHandler Sub NewDocument()
MsgBox "Please drop a file on this application to show the MD5 checksum."
End EventHandler
EventHandler Sub OpenDocument(item As FolderItem)
dim b as BinaryStream = BinaryStream.open(item, False)
if b<>nil then
dim s as string = b.Read(B.Length)
dim c as string = MD5StringMBS(s)
dim w as new MainWindow
w.EditField1.text = c
w.Show
end if
End EventHandler
Note "About"
End Class
Class MainWindow Inherits Window
Control EditField1 Inherits TextField
ControlInstance EditField1 Inherits TextField
End Control
Control StaticText1 Inherits Label
ControlInstance StaticText1 Inherits Label
End Control
Control PushButton1 Inherits PushButton
ControlInstance PushButton1 Inherits PushButton
EventHandler Sub Action()
dim c as new Clipboard
c.SetText EditField1.text
c.Close
End EventHandler
End Control
End Class
MenuBar MenuBar1
MenuItem FileMenu = "&Ablage"
MenuItem FileQuit = "#App.kFileQuit"
MenuItem EditMenu = "&Bearbeiten"
MenuItem EditUndo = "&Rückgängig"
MenuItem UntitledMenu1 = "-"
MenuItem EditCut = "&Ausschneiden"
MenuItem EditCopy = "&Kopieren"
MenuItem EditPaste = "&Einfügen"
MenuItem EditClear = "#App.kEditClear"
MenuItem UntitledMenu0 = "-"
MenuItem EditSelectAll = "&Alles auswählen"
End MenuBar