Re: cancelPerformSelector does not work

2014-05-22 Thread Gerriet M. Denkmann
On 22 May 2014, at 12:54, Roland King r...@rols.org wrote: If you read the documentation for NSObject's performSelector:withObject:afterDelay it tells you which method you need to use to cancel it again, and it's not NSRunLoop's cancelPerformSelector:target:argument. You are right. It

cancelPerformSelector does not work

2014-05-21 Thread Gerriet M. Denkmann
I have this code: - (void)speechSynthesizer:(AVSpeechSynthesizer *)synthesizer didFinishSpeechUtterance:(AVSpeechUtterance *)utterance { NSTimeInterval delay = 5; NSLog(@%s will resume music in %g sec.,__FUNCTION__, delay ); NSRunLoop *currentRunLoop = [ NSRunLoop

Re: cancelPerformSelector does not work

2014-05-21 Thread Roland King
If you read the documentation for NSObject's performSelector:withObject:afterDelay it tells you which method you need to use to cancel it again, and it's not NSRunLoop's cancelPerformSelector:target:argument. On 22 May, 2014, at 1:34 pm, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: I