Lisp HUG Maillist Archive

Cocoa Event Loop

Hello,

I am using LispWorks 6 on Mac OS X.

I would like to schedule some CoreFoundation callbacks in the Cocoa Event Loop.  Is there a way to access the CFRunLoop (or NSRunLoop) pointer from the Cocoa Event Loop process, or do I have to setup a process on myself and get the pointer with a call to CFRunLoopGetCurrent?

Thanks!


Best Regards,
Camille


Re: Cocoa Event Loop

I'd imagine you can just use +currentRunLoop or even just the +scheduled… functions in NSTimer (from which you should be able to call your CF functions) to do this for you:

(invoke "NSRunLoop" "currentRunLoop")

or

(invoke "NSTimer" "scheduledTimerWithTimeInterval:target:selector:userInfo:repeats:" …)

Do either of these help?

Jeff M.

On Nov 10, 2011, at 4:10 PM, Camille Troillard wrote:

> 
> Hello,
> 
> I am using LispWorks 6 on Mac OS X.
> 
> I would like to schedule some CoreFoundation callbacks in the Cocoa Event Loop.  Is there a way to access the CFRunLoop (or NSRunLoop) pointer from the Cocoa Event Loop process, or do I have to setup a process on myself and get the pointer with a call to CFRunLoopGetCurrent?
> 
> Thanks!
> 
> 
> Best Regards,
> Camille
> 


Updated at: 2020-12-10 08:37 UTC