• 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: afterDelay not working?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: afterDelay not working?


  • Subject: Re: afterDelay not working?
  • From: GW Rodriguez <email@hidden>
  • Date: Thu, 26 Jan 2012 21:20:40 -0800

Correct, it's not on a different thread. That's why I'm so confused as to why it's not working. :-/

GW Rodriguez
Audio Technician
South Coast Repertory
(c) 909-720-4202
www.gwrodriguez.com

On Jan 26, 2012, at 9:12 PM, Jens Alfke <email@hidden> wrote:

>
> On Jan 26, 2012, at 8:56 PM, GW Rodriguez wrote:
>
>> For some reason the afterDelay method isn't working.  I know my simple methods work because when I call endFlash independently it works just fine.  I have tried every permutation of the afterDelay method, I tried putting it in the delegate class, I tried using a NSTimer scheduleTimerWithTimeInterval: with no success.
>
> The code you showed should work. How do you know the perform-after-delay isn't working? Did you set a breakpoint at the start of the -endFlash method to make sure it's not being called?
>
> This code is running on the main thread, right? Perform-after-delay probably won't work if invoked on a background thread that doesn't have a runloop.
>
> —Jens
_______________________________________________

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: afterDelay not working?
      • From: Dave Keck <email@hidden>
References: 
 >afterDelay not working? (From: GW Rodriguez <email@hidden>)
 >Re: afterDelay not working? (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: afterDelay not working?
  • Next by Date: Re: afterDelay not working?
  • Previous by thread: Re: afterDelay not working?
  • Next by thread: Re: afterDelay not working?
  • Index(es):
    • Date
    • Thread