Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

MacOSX Run Loop vs Tcl (FSEvents)

16 views
Skip to first unread message

SM Ryan

unread,
Jul 5, 2007, 6:08:28 PM7/5/07
to
Is there code or examples on how to adapt MacOSX run loop
events to run with Tcl dispatch? I'm particularly interested
in the 10.5 FSEvents.

--
SM Ryan http://www.rawbw.com/~wyrmwif/
TEMPORARILY CLOSED
BE OPENED AFTER FIRST PERIOD

Daniel A. Steffen

unread,
Jul 6, 2007, 11:16:37 PM7/6/07
to
On Jul 6, 8:08 am, SM Ryan <wyrm...@tango-sierra-oscar-foxtrot-

tango.fake.org> wrote:
> Is there code or examples on how to adapt MacOSX run loop
> events to run with Tcl dispatch?

if you buid tcl with --enable-corefoundation (default), the tcl event
loop is CFRunLoop based (c.f. tcl/macosx/tclMacOSXNotify.c), i.e. any
thread with a tcl interp will have a runloop running, so you can just
add your runloop sources (custom or system provided) to the runloop
you get from CFRunLoopGetCurrent() and your sources will fire as
events become available for them.

> I'm particularly interested in the 10.5 FSEvents.

can't about those in a public forum, but everything should just
work...

Cheers,

Daniel

0 new messages