• 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
Firing an NSTimer by hand
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Firing an NSTimer by hand


  • Subject: Firing an NSTimer by hand
  • From: Serge Meynard <email@hidden>
  • Date: Sat, 02 Feb 2002 17:16:55 -0500

I have an NSTimer set up to automatically remove my splash screen window
after a certain time, but I also want to remove it immediately when the user
clicks on it. When I get a mouseDown in the window, I call [timer fire],
which should do the job, but nothing happens. The timer just keeps going
until it fires at the end of the interval, and then my window goes away.
Yes, the mouseDown gets called, and no, the timer isn't nil in the
mouseDown...
Is there something I'm doing wrong?


  • Follow-Ups:
    • Re: Firing an NSTimer by hand
      • From: "Erik M. Buck" <email@hidden>
  • Prev by Date: Re: optimizing compilers
  • Next by Date: Re: reading in text files
  • Previous by thread: Proper subclassing of NSMutableArray?
  • Next by thread: Re: Firing an NSTimer by hand
  • Index(es):
    • Date
    • Thread