Re: NSRunLoop behavior

2010-09-22 Thread Keary Suska
On Sep 21, 2010, at 8:30 PM, Rafael Cerioli wrote: Ok, thank you for your answer. So, you are telling me that [self performSelector:@selector(waitUntilReady) withObject:nil afterDelay:1] is an input source ? What exactly is the input source, my selector or the timer that when fired, will

NSRunLoop behavior

2010-09-21 Thread Rafael Cerioli
Hi, I'm trying to understand how run loops work. I've written this useless piece of code and I'm not sure why success does not show up... What happens is that waitUntilReady never terminates, because it seems that the runUntilDate in myButtonAction never ends as well. My theory would be that

Re: NSRunLoop behavior

2010-09-21 Thread Keary Suska
On Sep 21, 2010, at 5:55 AM, Rafael Cerioli wrote: Hi, I'm trying to understand how run loops work. I've written this useless piece of code and I'm not sure why success does not show up... What happens is that waitUntilReady never terminates, because it seems that the runUntilDate in

Re: NSRunLoop behavior

2010-09-21 Thread Rafael Cerioli
Ok, thank you for your answer. So, you are telling me that [self performSelector:@selector(waitUntilReady) withObject:nil afterDelay:1] is an input source ? What exactly is the input source, my selector or the timer that when fired, will call my selector ? I thought sources were like timers