Re: NSTimer & Runloop questions

2009-03-20 Thread Robbie Hanson
How can I know if a fired timer has already been "invalidated" using setFireDate? Consider the following pseudo-code: - (void)dequeueNextOperation { // IF there is another operation in the queue // Dequeue and start opertation... // Start timeout timer for operation /

Re: NSTimer & Runloop questions

2009-03-20 Thread Robbie Hanson
1 PM, Ken Thomases wrote: On Mar 19, 2009, at 1:51 PM, Robbie Hanson wrote: However I'm not sure how safe it is to use the setFireDate method of NSTimer. Consider the following code: NSTimer *timer = [NSTimer scheduledTimerWithTimeInterval:0.2

NSTimer & Runloop questions

2009-03-19 Thread Robbie Hanson
I have a library that potentially creates and invalidates/destroys a lot of NSTimers. Basically, users request operations to be completed and they pass an optional timeout. If the operation completes in the appropriate time, the timer is invalidated. Otherwise the timer fires, and the op

Re: Preferred Wrapper for TCP Sockets Over Local Network?

2008-08-17 Thread Robbie Hanson
___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com

RE: Threading problem using AsyncSocket

2008-08-15 Thread Robbie Hanson
multi-threaded-http-server.html -Robbie Hanson -Deusty Designs ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com