• 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: NSTimer Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: NSTimer Problem
      • From: Doug Brown <email@hidden>
References: 
 >Re: NSTimer Problem (From: Brendan Younger <email@hidden>)

  • Prev by Date: Re: How to make system wide changes to Cocoa
  • Next by Date: Re: DocumentController & ApplicationController: messages between them?
  • Previous by thread: Re: NSTimer Problem
  • Next by thread: Re: NSTimer Problem
  • Index(es):
    • Date
    • Thread