• 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: Stefan Wolfrum <email@hidden>
  • Date: Mon, 16 Mar 2009 11:02:01 +0100

Interestingly, if I add the colon after @selector(timerFireMethod) to read @selector(timerFireMethod:)
the timerFireMethod doesn't get called anymore, in Debug AND Release builds.


btw, this method doesn't have any parameter, it's definition is:

- (void)timerFireMethod
{
   // do something
}

Am 15.03.2009 um 13:02 schrieb Dave Keck:

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.

The method that the timer calls isn't required to take an argument to work. Not sure what the best practices/docs say about this, though.

Perhaps the run loop isn't running?

The fact that the debug/release setting affects whether it works is
very strange. I suspect it's some other variable.

David

_______________________________________________

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: Scott Ribe <email@hidden>
    • Re: NSTimer: Debug vs. Release build
      • From: Graham Cox <email@hidden>
References: 
 >NSTimer: Debug vs. Release build (From: Stefan Wolfrum <email@hidden>)
 >Re: NSTimer: Debug vs. Release build (From: "Paul Sanders" <email@hidden>)
 >Re: NSTimer: Debug vs. Release build (From: Dave Keck <email@hidden>)

  • Prev by Date: Re: Fast dictionary with integer keys?
  • Next by Date: Re: NSTimer: Debug vs. Release build
  • Previous by thread: Re: NSTimer: Debug vs. Release build
  • Next by thread: Re: NSTimer: Debug vs. Release build
  • Index(es):
    • Date
    • Thread