Bill Welliver is sharing code with you
Bitbucket is a code hosting site. Unlimited public and private repositories. Free for small teams.
Don't show this againpublic_system_fsevents overview
Recent commits See more »
| Author | Revision | Comments | Message | Labels | Date |
|---|---|---|---|---|---|
|
|
fd197d7fabf3 |
a few little tweaks to work with the core foundation support added to PollDeviceBackend in 7.9 |
|
||
|
|
e9ce404138ad |
some documentation, pretty up the example |
|
||
|
|
b391e02c134c |
fixes to work with CFRunLoop based backends, that might cause code to run on a different runloop thread |
|
||
|
|
317c241f917e |
ok, don't need objective-c anymore |
|
||
|
|
9eec708498a4 |
added is_running() |
|
Public.System.FSEvents is a Pike module that provides an interface to FSEvents. FSEvents is an API in Mac OS X which allows an application to register for notifications of changes to a given directory tree without forcing the application to continously poll the directory tree. This module is designed for use in asynchronous or backend mode, that is, rather than polling for changes, a function you specify will be called when events of interest occur. This module assumes the presence and use of a CFRunLoop based Backend object, otherwise this module will not receive events from the OS. The CFRunLoop Backend is a new feature that is available in development versions of Pike 7.9.6 and greater running on Mac OS X 10.5 and higher. See the examples directory for a sample script that prints out events for a given directory, as they occur.