Quantcast
Channel: Background thread NSRunloop run does not exit after NSTimer is invalidated! Why? - Stack Overflow
Browsing latest articles
Browse All 4 View Live

Answer by Simon Tillson for Background thread NSRunloop run does not exit...

This stops a run loop fine for me:[[NSRunLoop currentRunLoop] runUntilDate: [NSDate date]];If you're writing code which may be run on the main thread (and hence uses the main runloop) though, you...

View Article


Answer by Cal for Background thread NSRunloop run does not exit after NSTimer...

I needed to read the documentation for [NSTimer invalidate].... This method must be called from the same thread in which the timer is installed. If you don't call it from the same thread the timer...

View Article

Answer by jscs for Background thread NSRunloop run does not exit after...

From the -[NSRunLoop run] docs:Manually removing all known input sources and timers from the run loop is not a guarantee that the run loop will exit.You should use a different method, possibly...

View Article

Background thread NSRunloop run does not exit after NSTimer is invalidated! Why?

I'm creating an NSTimer and adding it to the runloop of a background thread.My code is like the background thread example for this answer: iPhone-SDK:Call a function in the background?After creating...

View Article
Browsing latest articles
Browse All 4 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>