Re: "Thread,eventloop,moviestask"
Re: "Thread,eventloop,moviestask"
- Subject: Re: "Thread,eventloop,moviestask"
- From: Gerard Iglesias <email@hidden>
- Date: Sat, 5 Apr 2003 17:02:56 +0200
On Saturday, April 5, 2003, at 11:32 AM, Bartosz Smaga wrote:
>
> and I move window or scale window etc. etc. my callback (with
>
> "MovieTask" function) stop running :-(
If you use Cocoa use the following capability :
timer = [[NSTimer timerWithTimeInterval:0.04
target:self
selector:@selector(flyingTimerFired:)
userInfo:nil
repeats:YES] retain];
[[NSRunLoop currentRunLoop] addTimer:timer
forMode:NSDefaultRunLoopMode];
[[NSRunLoop currentRunLoop] addTimer:timer
forMode:NSEventTrackingRunLoopMode];
With that your timer will be called event when tracking mouse event
Gerard
_______________________________________________
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.