• 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: Debug vs. Release build
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTimer: Debug vs. Release build


  • Subject: Re: NSTimer: Debug vs. Release build
  • From: "Paul Sanders" <email@hidden>
  • Date: Sun, 15 Mar 2009 11:53:50 -0000

Missing colon after timerFireMethod (within the @selector statement).  It
catches me out too.  Not sure why it works for you in debug builds.  I have
not observed that behaviour.

Rgds - Paul Sanders.

----- Original Message -----
From: "Stefan Wolfrum"
To: <email@hidden>
Sent: Sunday, March 15, 2009 11:32 AM
Subject: NSTimer: Debug vs. Release build


Hello nice people,

I wrote a little OS X application that uses a NSTimer. I initialize it
like this:

    repeatingTimer = [NSTimer scheduledTimerWithTimeInterval:4.0
                              target:self
selector:@selector(timerFireMethod)
                              userInfo:nil repeats:YES];

And I have a small simple timerFireMethod. Nothing else is done with
the times in the app.

Everything works fine in the Debug builds. But in the Release build
the NSTimer simply just doesn't fire.

I googled but to no avail yet.

Any hints? Maybe change some optimization flags in the Release build
settings? But which ones?

Thanks a lot!
Stefan.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSTimer: Debug vs. Release build
      • From: Dave Keck <email@hidden>
References: 
 >NSTimer: Debug vs. Release build (From: Stefan Wolfrum <email@hidden>)

  • Prev by Date: NSTimer: Debug vs. Release build
  • Next by Date: Re: Representation of the entire window
  • Previous by thread: NSTimer: Debug vs. Release build
  • Next by thread: Re: NSTimer: Debug vs. Release build
  • Index(es):
    • Date
    • Thread