Platforms to show: All Mac Windows Linux Cross-Platform
Back to FSEventsMBS class.
FSEventsMBS.Available as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Folder Change Watching | MBS MacFrameworks Plugin | 8.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
True on Mac OS X 10.5 and false on other versions and operation systems.
FSEventsMBS.GetAbsoluteTime(theDate as date) as Double
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Folder Change Watching | MBS MacFrameworks Plugin | 8.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Returns 0 if the date parameter is nil or invalid.
See also:
FSEventsMBS.GetAbsoluteTime(theDate as DateTime) as double
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Folder Change Watching | MBS MacFrameworks Plugin | 20.5 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Returns 0 if the date parameter is nil or invalid.
See also:
FSEventsMBS.GetCurrentEventId as UInt64
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Folder Change Watching | MBS MacFrameworks Plugin | 8.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
By thetime it is returned to your application even newer events may have already been generated.
Some examples using this method:
FSEventsMBS.GetDeviceID(volume as folderitem) as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Folder Change Watching | MBS MacFrameworks Plugin | 8.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Returns 0 on any error.
FSEventsMBS.GetLastEventIdForDeviceBeforeTime(DeviceID as Integer, theTime as Double) as UInt64
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Folder Change Watching | MBS MacFrameworks Plugin | 8.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
This is conservative in the sense that if you then use the returned event ID as the sinceWhen parameter of the constructor that you will not miss any events that happened since that time. On the other hand, you might receive some (harmless) extra events. Beware: there are things that can cause this to fail to be accurate. For example, someone might change the system's clock (either backwards or forwards). Or an external drive might be used on different systems without perfectly synchronized clocks.
FSEventsMBS.kFSEventStreamEventIdSinceNow as UInt64
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Folder Change Watching | MBS MacFrameworks Plugin | 16.0 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Returns &hFFFFFFFFFFFFFFFF.
Some examples using this method:
FSEventsMBS.PurgeEventsForDeviceUpToEventId(DeviceID as Integer, EventID as UInt64) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Folder Change Watching | MBS MacFrameworks Plugin | 8.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Can only be called by the root user.
FSEventsMBS.UUIDForDevice(DeviceID as Integer) as memoryblock
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Folder Change Watching | MBS MacFrameworks Plugin | 8.4 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
A (non-nil) UUID uniquely identifies a given stream of FSEvents. If this (non-nil) UUID is different than one that you stored from a previous run then the event stream is different (for example, because FSEvents were purged, because the disk was erased, or because the event ID counter wrapped around back to zero). A nil return value indicates that "historical" events are not available, i.e., you should not supply a "sinceWhen" value to the constructor other than kFSEventStreamEventIdSinceNow.
The items on this page are in the following plugins: MBS MacFrameworks Plugin.