From: Ben Timby <btimby@gm...> - 2010-12-07 15:29:06
I am sorry if this is not the correct forum for questions of this
nature, but I could not find anywhere else to pose this question.
I am trying to integrate the cocoa event loop with the wx event loop.
I basically need to be able to do this:
I have the wx side figured out, but I can't find any information on
how to do something similar with pyobjc-cocoa. To re-iterate, I don't
want to enter into a loop, I simply want cocoa to process any pending
events and then return. I will iteratively call said function until
the program ends.
> while running:
> I have the wx side figured out, but I can't find any information on
> how to do something similar with pyobjc-cocoa.
The general idea is
[[NSRunLoop currentRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:cocoaTimeSlice]]
for some small value of cocoaTimeSlice that you will need to decide on your own.
"Calling computing 'computer science' is like calling surgery 'knife science'." — Edsger Dijkstra