Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

FSEventsMBS.Available as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Folder Change Watching MBS MacFrameworks Plugin 8.1 Yes No No Yes, macOS only No
Function: Whether the FSEvent functions are working.
Example:
if FSEventsMBS.Available then
MsgBox "available"
else
MsgBox "not available"
end if
Notes: True on Mac OS X 10.5 and false on other versions and operation systems.

Feedback, Comments & Corrections

FSEventsMBS.GetAbsoluteTime(theDate as date) as Double
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Folder Change Watching MBS MacFrameworks Plugin 8.4 Yes No No Yes, macOS only No
Function: Creates an absolute time value based on the system time zone and the values in the date object.
Example:
dim d as new date

MsgBox str(FSEventsMBS.GetAbsoluteTime(d))
Notes: Returns 0 if the date parameter is nil or invalid.

Feedback, Comments & Corrections

FSEventsMBS.GetCurrentEventId as UInt64
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Folder Change Watching MBS MacFrameworks Plugin 8.1 Yes No No Yes, macOS only No
Function: Fetches the most recently generated event ID, system-wide (not just for one stream).
Notes: By thetime it is returned to your application even newer events may have already been generated.

Feedback, Comments & Corrections

FSEventsMBS.GetDeviceID(volume as folderitem) as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Folder Change Watching MBS MacFrameworks Plugin 8.4 Yes No No Yes, macOS only No
Function: Returns the device ID for the volume the folderitem points to.
Example:
dim v as FolderItem

v=volume(0)

MsgBox str(FSEventsMBS.GetDeviceID(v))
Notes: Returns 0 on any error.

Feedback, Comments & Corrections

FSEventsMBS.GetLastEventIdForDeviceBeforeTime(DeviceID as Integer, theTime as Double) as UInt64
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Folder Change Watching MBS MacFrameworks Plugin 8.4 Yes No No Yes, macOS only No
Function: Gets the last event ID for the given device that was returned before the given time.
Example:
dim d as new date

MsgBox str(FSEventsMBS.GetLastEventIdForDeviceBeforeTime(1,d.TotalSeconds))
Notes: 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.

Feedback, Comments & Corrections

FSEventsMBS.kFSEventStreamEventIdSinceNow as UInt64
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Folder Change Watching MBS MacFrameworks Plugin 16.0 Yes No No Yes, macOS only No
Function: A special value to pass in if you mean the event ID for now.
Notes: Returns &hFFFFFFFFFFFFFFFF.

Feedback, Comments & Corrections

FSEventsMBS.PurgeEventsForDeviceUpToEventId(DeviceID as Integer, EventID as UInt64) as boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Folder Change Watching MBS MacFrameworks Plugin 8.4 Yes No No Yes, macOS only No
Function: Purges old events from the persistent per-volume database maintained by the service.
Notes: Can only be called by the root user.

Feedback, Comments & Corrections

FSEventsMBS.UUIDForDevice(DeviceID as Integer) as memoryblock
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
shared method Folder Change Watching MBS MacFrameworks Plugin 8.4 Yes No No Yes, macOS only No
Function: Gets the UUID associated with a device, or nil if not possible (for example, on read-only device).
Notes: 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.

Feedback, Comments & Corrections

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




Links
MBS Xojo Plugins