Xojo Conferences

Platforms to show: All Mac Windows Linux Cross-Platform

/MacFrameworks/FSEvents/FSEvents on Boot Device Console
You find this example project in your Plugins Download as a Xojo project file within the examples folder: /MacFrameworks/FSEvents/FSEvents on Boot Device Console
This example is the version from Sun, 17th Mar 2012.
Project "FSEvents on Boot Device Console.rbp"
Class App Inherits ConsoleApplication
EventHandler Function Run(args() as String) As Integer dim eventid as UInt64 dim flags as integer dim latency as Double dim DeviceID as integer dim volume as FolderItem = volume(0) dim path as string = "" DeviceID=FSEventsMBS.GetDeviceID(volume) eventid=FSEventsMBS.GetCurrentEventId flags=FSEventsMBS.kFSEventStreamCreateFlagNone latency=1.0 f=new FSEvents(DeviceID, path, eventid, latency, flags) f.mypath=path if not f.Start then print "Failed to start." Return 0 end if print "running... Press Control-C to stop in Terminal." do DelayMBS 1.0 loop End EventHandler
Property f As fsevents
End Class
Class FSEvents Inherits FSEventsMBS
EventHandler Sub Callback(index as integer, count as integer, path as string, flags as integer, eventID as UInt64) print path End EventHandler
Property mypath As string
End Class
End Project

See also:

Feedback, Comments & Corrections

The items on this page are in the following plugins: MBS MacFrameworks Plugin.

MBS Xojo Chart Plugins