Re: QuickTime stops to play
Re: QuickTime stops to play
- Subject: Re: QuickTime stops to play
- From: Lorenzo <email@hidden>
- Date: Tue, 16 Sep 2003 08:35:44 +0200
Thank you.
I already created a NSTimer with the NSEventTrackingRunLoopMode as shown
below, but this doesn't help while resizing the window.
I have found the code you spoke about in the qt-list, called
"qtundercocoa.txt" (I mention it here to everybody know). It explains how to
use a NSTimer within a NSThread firing the MoviesTask() function, so I am
going to try that, hopefully.
-------------------
myTimer = [[NSTimer scheduledTimerWithTimeInterval:0.1
target:self selector:@selector(refreshView) userInfo:nil repeats:YES]
retain];
[[NSRunLoop currentRunLoop] addTimer: myTimer
forMode:NSModalPanelRunLoopMode];
[[NSRunLoop currentRunLoop] addTimer: myTimer
forMode:NSEventTrackingRunLoopMode];
Best Regards
--
Lorenzo
email: email@hidden
>
Message: 12
>
Date: Mon, 15 Sep 2003 23:31:29 -0400
>
Subject: Re: QuickTime stops to play
>
From: Cameron Hayne <email@hidden>
>
To: "cocoa dev lists.apple.com" <email@hidden>
>
>
On 15/9/03 9:57 PM, "Greg Hamilton" <email@hidden> wrote:
>
> [...] a way to initialize an
>
> NSTimer in such a way that this problem was avoided
>
>
I haven't tried it, but I suspect the answer is to register the timer with
>
the runloop by using NSRunLoop's addTimer:forMode: with mode
>
NSEventTrackingRunLoopMode.
>
(That is what I do to get my timer to fire while the user is dragging a
>
slider.)
>
>
--
>
Cameron Hayne (email@hidden)
>
Hayne of Tintagel
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.