Re: afterDelay not working?
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