• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: "Thread,eventloop,moviestask"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >"Thread,eventloop,moviestask" (From: Bartosz Smaga <email@hidden>)

  • Prev by Date: Re: cocoa-dev digest, Vol 2 #2166 - 14 msgs
  • Next by Date: What units are in effect when drawing?
  • Previous by thread: "Thread,eventloop,moviestask"
  • Next by thread: Re: "Thread,eventloop,moviestask"
  • Index(es):
    • Date
    • Thread