Platforms to show: All Mac Windows Linux Cross-Platform
/MacOSX/File System Notification
Required plugins for this example: MBS MacOSX Plugin
You find this example project in your Plugins Download as a Xojo project file within the examples folder: /MacOSX/File System Notification
This example is the version from Sun, 17th Mar 2012.
Project "File System Notification.xojo_binary_project"
Class Window1 Inherits Window
Control List Inherits ListBox
ControlInstance List Inherits ListBox
End Control
Control PushButton1 Inherits PushButton
ControlInstance PushButton1 Inherits PushButton
EventHandler Sub Action()
dim f as FolderChangedNotificationMBS
f=new FolderChangedNotificationMBS
f.NotifyAll
End EventHandler
End Control
Control PushButton2 Inherits PushButton
ControlInstance PushButton2 Inherits PushButton
EventHandler Sub Action()
dim f as FolderChangedNotificationMBS
f=new FolderChangedNotificationMBS
f.Notify SpecialFolder.Desktop
End EventHandler
End Control
Control StaticText1 Inherits Label
ControlInstance StaticText1 Inherits Label
End Control
EventHandler Sub Open()
f=new fn
f.Subscribe(SpecialFolder.Desktop,2)
End EventHandler
Property Protected f As fn
End Class
MenuBar Menu
MenuItem UntitledMenu3 = ""
MenuItem UntitledMenu2 = "File"
MenuItem FileQuit = "Quit"
MenuItem UntitledMenu0 = "Edit"
MenuItem EditUndo = "Undo"
MenuItem UntitledMenu1 = "-"
MenuItem EditCut = "Cut"
MenuItem EditCopy = "Copy"
MenuItem EditPaste = "Paste"
MenuItem EditClear = "Clear"
End MenuBar
Class fn Inherits FolderChangedNotificationMBS
EventHandler Sub DirectoryChanged(message as integer, flags as integer)
dim d as date
d=new date
Window1.List.InsertRow 0,d.LongDate+" "+d.LongTime
End EventHandler
End Class
Class App Inherits Application
End Class
End Project
The items on this page are in the following plugins: MBS MacOSX Plugin.