Re: [Pyobjc-dev] Web Services Tool example broken
Brought to you by:
ronaldoussoren
From: Paul D. <pa...@do...> - 2004-04-05 23:04:22
|
On 5 Apr 2004, at 22:31, Bob Ippolito wrote: > What does your application actually do? Chances are, there is a > single threaded (as far as Python is concerned, at least) approach you > can take that will have higher performance and be easier to debug. > > It's quite a simple application. It parses the iTunes library XML file, gathers some statistics about all the tracks and display the stats and the tracks in a couple of NSTableViews. I was using a thread to parse the file and generate the python objects so that the UI remained responsive whilst the app starts up. It take 5 or 6 seconds to parse a very large library on my laptop. A spinning NSProgressIndicator is shown when the loading takes place. I'm keen to do this the correct way, but I'm still learning Mac programming so I just picked the first thread stuff that I found. I also seem to recall reading that NSThread couldn't be used easily with PyObjc. That was around Christmas time (I don't get much time to spend on this stuff, so I'm on a slow learning schedule) Cheers, Paul |