tapping into finder events

Randall Lee Reetz randall at randallreetz.com
Thu Jan 10 23:51:53 EST 2008


Scott,

Sorry, I spoke to soon.  This fsevents api does indeed *sound* robust enough for my requirments.  But now what?  I assume these are libraries of functions in c.  How does "high level" Randall get these functions into an xtalk external?  Are you an external writer?

Randall 

-----Original Message-----
From: "Scott Rossi" <scott at tactilemedia.com>
To: "Revolution Mail List" <use-revolution at lists.runrev.com>
Sent: 1/10/2008 1:21 PM
Subject: Re: tapping into finder events

Recently, Randall Lee Reetz wrote:

> The suggestions posted to my questions have all required polling, which is
> peridic comparison of what was with what is now.  This is scary inefficient
> compared with getting delta messages as they occure.

Not sure if you've already come across this, but it *looks* like the
underlying principles may be what you're after (for OS X only):

"... the FSEvents API. This API provides a mechanism to notify clients about
directories they ought to re-scan in order to keep their internal data
structures up-to-date with respect to the true state of the file system.
(For example, when files or directories are created, modified, or removed.)
It sends these notifications "in bulk", possibly notifying the client of
changes to several directories in a single callback. By using the API,
clients can notice such changes quickly, without needing to resort to
recursive polling/scanning of the file system."

http://developer.apple.com/documentation/Darwin/Reference/FSEvents_Ref/FSEve
nts/index.html

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design


_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution





More information about the use-livecode mailing list