Re: NSTimer Problem
Re: NSTimer Problem
- Subject: Re: NSTimer Problem
- From: email@hidden
- Date: Mon, 13 May 2002 11:24:44 -0700
Doug Brown wrote:
|I'm having what seems to be a very simple problem with NSTimers. I have
|a timer set up to repeatedly fire ... Is there a way to get it to keep
|firing even when the user is holding down the mouse on one of these
|buttons?
Brendan Younger wrote:
|Try placing your timer and your update code in a different thread.
This will work only if your timer routine doesn't do anything with the UI. The AppKit methods are *not* thread-safe; fiddling with the UI from a non-UI thread is a sure way to crash your program.
Glen Fisher
_______________________________________________
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.