• 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 with event run loop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTimer problem with event run loop


  • Subject: Re: NSTimer problem with event run loop
  • From: Matt Reagan <email@hidden>
  • Date: Tue, 6 Dec 2005 14:28:25 -0800

Right after you asked that I took another look at the init code, and
within 10 minutes I slapped myself: the timer was being created inside
of a FOR loop that was running in the init method, basically creating
60 timers instead of one. I moved one closing bracket in the code and
it's fine now. :\ Sorry I didn't notice that before, it's always the
most obvious stuff that escapes my attention.

If you want something to be invisible, paint it red.

Thanks,
-Matt

On 12/6/05, Shawn Erickson <email@hidden> wrote:
> On 12/6/05, Matt Reagan <email@hidden> wrote:
>
> > I'm having problems with an NSTimer that triggers a refresh for a
> > custom NSView.
>
> How often is this timer firing? How are you creating it?
>
> -Shawn
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >NSTimer problem with event run loop (From: Matt Reagan <email@hidden>)
 >Re: NSTimer problem with event run loop (From: Shawn Erickson <email@hidden>)

  • Prev by Date: Re: NSTimer problem with event run loop
  • Next by Date: Re: Double-clicking multiple selection in a TableView
  • Previous by thread: Re: NSTimer problem with event run loop
  • Next by thread: IBOutlet and Shared Instances
  • Index(es):
    • Date
    • Thread