Re: runEventLoop() once.

Ben Artin <[email protected]>
Newsgroups gmane.comp.python.pyobjc.devel
Message-ID <[email protected]>
> while running:
>    AppHelper.runEventsOnce()
>    wx.RunEvents()
> 
> 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.

-- 

<http://artins.org/ben>, <http://twitter.com/airbornemint>

"Calling computing 'computer science' is like calling surgery 'knife science'." — Edsger Dijkstra









------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly 
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus 
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.