Re: [Pyobjc-dev] Problems with current SVN and threads
Brought to you by:
ronaldoussoren
From: Joshua K. <jo...@ro...> - 2004-11-18 21:55:57
|
Sorry, I failed to offer a solution. What I do for things like this is use a python Queue object, which is populated by the python thread and polled by an NSTimer. On Nov 18, 2004, at 1:45 PM, Francesco Pierfederici wrote: > > Hi, > > I have updated my PyObjC installation to the latest SVN (revision > 1179), which made my (threaded) app break. Everything seems to be > working fine up until revision 1115... > > I have come up with a small example that shows the problem: > http://tiamat.tuc.noao.edu/~fpierfed/pyobjc-test.zip > > Just compile it in XCode and run it. A window will pop up with a text > field in it. What should happen is that the text in the text field > changes every 5 seconds. What happens instead is that the app freezes. > You will see that the way this works is by having a Python thread > asking the AppDelegate instance to update the text. > > Any help on how to fix the problem would be greatly appreciated! > > ciao ciao > Francesco > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: InterSystems CACHE > FREE OODBMS DOWNLOAD - A multidimensional database that combines > robust object and relational technologies, making it a perfect match > for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 > _______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev |