Hi,
I'm trying to figure out how I can have my app run a timer that never
suspends when the user interacts with menus and the like.  In Carbon,
one can do:

EventLoopRef mainLoop;
        EventLoopTimerUPP timerUPP;
        EventLoopTimerRef theTimer;

        mainLoop = GetMainEventLoop();
        timerUPP = NewEventLoopTimerUPP(TimerAction);
        InstallEventLoopTimer (mainLoop,
                               1*kEventDurationMillisecond,
                               1*kEventDurationMillisecond,
                               timerUPP,
                               NULL,
                               &theTimer);


To achieve this.  NSTimer doesn't seem to behave the same way and I
don't see any methods that would modify such behavior.  Is there a way
to get a behavior like InstallEventLoopTimer in Cocoa?

thanks,
wes
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to