Re: Can't get timer to fire on separate thread

2014-10-21 Thread Roland King
> On 21 Oct 2014, at 4:58 pm, Rick Mann wrote: > > I'm simulating a device that takes a substantial amount of time to respond to > a series of REST HTTP request (to support automated testing). I'm writing an > OS X app to do this. I was trying to avoid running the timer on the main > thread b

Re: Can't get timer to fire on separate thread

2014-10-21 Thread Rick Mann
> On Oct 21, 2014, at 01:46 , Ken Thomases wrote: > > On Oct 21, 2014, at 3:15 AM, Rick Mann wrote: > >> I'm using CocoaHTTPServer and RoutingHTTPServer, and when a request comes >> in, my handler block is called on some arbitrary thread. The run loop >> associated with it has kCFRunLoopDefa

Re: Can't get timer to fire on separate thread

2014-10-21 Thread Ken Thomases
On Oct 21, 2014, at 3:15 AM, Rick Mann wrote: > I'm using CocoaHTTPServer and RoutingHTTPServer, and when a request comes in, > my handler block is called on some arbitrary thread. The run loop associated > with it has kCFRunLoopDefaultMode. > > I have code that creates an NSTimer and invokes

Can't get timer to fire on separate thread

2014-10-21 Thread Rick Mann
I'm using CocoaHTTPServer and RoutingHTTPServer, and when a request comes in, my handler block is called on some arbitrary thread. The run loop associated with it has kCFRunLoopDefaultMode. I have code that creates an NSTimer and invokes a block passed to it. This works fine when called from th