Top "Nsrunloop" questions

NSRunLoop is a class in Apple's Foundation framework.

How do I create a NSTimer on a background thread?

I have a task that needs to be performed every 1 second. Currently I have an NSTimer firing repeatedly every 1 sec. …

objective-c cocoa nstimer nsrunloop nsblockoperation
Understanding NSRunLoop

Can anyone explain for what is NSRunLoop? so as I know NSRunLoop is a something connected with NSThread right? So …

ios objective-c cocoa-touch nsrunloop
NSDefaultRunLoopMode vs NSRunLoopCommonModes

Whenever I try to download a big file behind UIScrollView, MPMapView or something, the downloading process gets halted as soon …

iphone ios multithreading nsrunloop
NSTimer requiring me to add it to a runloop

I am wondering if someone can explain why dispatching back to the main queue and creating a repeating NSTimer I …

ios objective-c nstimer nsrunloop
Keep NSThread alive and run NSRunLoop on it

So I'm starting a new NSThread that I want to be able to use later by calling performSelector:onThread:.... From …

objective-c cocoa nsthread foundation nsrunloop
How to wait in NSThread until some event occur in iOS?

How to wait inside the NSThread until some event occur in iOS? eg, We created a NSThread and started a …

iphone ios objective-c nsthread nsrunloop
Run repeating NSTimer with GCD?

I was wondering why when you create a repeating timer in a GCD block it doesen't work? This works fine: …

ios objective-c grand-central-dispatch nstimer nsrunloop
how to stop a timer triggered runloop?

if i set up a runloop like that: NSRunloop* loop = [NSRunloop currentRunLoop]; [runLoop addTimer:anyTimer forMode:NSDefaultRunLoopMode]; can i stop …

iphone objective-c timer nsrunloop
iOS dispatch_async and NSURLConnection delegate functions not being called

I've edited this post to make it simpler to read, I think. I need to call an NSUrlConnection after I've …

objective-c ios nsurlconnection nsrunloop
How do you schedule a block to run on the next run loop iteration?

I want to be able to execute a block on the next run loop iteration. It's not so important whether …

objective-c cocoa cocoa-touch grand-central-dispatch nsrunloop