From Apple Docs..
"Discussion
This is the only way to remove a timer from an NSRunLoop object. The NSRunLoop object removes and releases the timer, either just before the invalidate method returns or at some later point.
You must send this message from the thread on which the timer was installed. If you send this message from another thread, the input source associated with the timer may not be removed from its run loop, which could prevent the thread from exiting properly.
The receiver releases its references to the target and userInfo objects at the point of invalidation."
That sucks! because I'm sending the Invalidate command from another thread it's not killing it properly.
Any ideas of how to send a message from my one thread to the other that triggers it.. ?
maybe a BOOL switch with a "if BOOL = YES" [invalidate] type thing?
|