Re: [Pyobjc-dev] QTKit.QTMovie .play() question
Brought to you by:
ronaldoussoren
|
From: Armando R. <air...@gm...> - 2009-02-13 13:02:05
|
On Fri, Feb 13, 2009 at 3:35 AM, Luc Heinrich <lu...@ho...> wrote: > On 13 févr. 09, at 03:12, Armando Rivera wrote: > >> I'm trying to play an mp3 file use QTMovie's .play() method, and no >> matter what I've tried I only get approximately 2 seconds of output. >> Is there something that I'm missing? > > A run loop, like this for example: > <snip> Thank you, Luc. If I may, I have one more question: In ObjC, whenever you .alloc something, you're supposed to either release it or set it to autorelease. Unless you're using GC, of course. Is that the case with PyObjc also? The examples I've seen haven't done this, and I just want to be sure I'm not leaking memory. Again, thank you for the NSRunLoop tip! Armando Rivera. -- "Programming is like Poetry. Sometimes the words just escape you..." -me, to my manager. http://www.recursivemedia.net |