I'm trying to add timers to a NSRunLoop. My expected outcome is that once the timers have been added to the loop, they start counting down independent from one another.
My code now looks like this:
...

I am currently using CocoaAsyncSocket to send UDP Socket messages to a server. Occasionally I need to enforce that messages arrive in a specific order. Basically my code structure is similar to below. ...

So I'm writing tests for this operation where I do something and if it fails we lazily try to perform this operation again using a performSelector:withObject:afterDelay:, now I would like to wait for ...

I have been following this tutorial http://www.raywenderlich.com/3932/networking-tutorial-for-ios-how-to-create-a-socket-based-iphone-app-and-server and I got everything working ok, but there is one ...

I have an application with implemented local server which handles request from web front-end.
UIWebView presents some GUI, user do some interaction, I handle his requests and send responses back to ...

Our problem is very similar to this: scheduleInRunLoop - threading network connections, but no one answered this question.
At the moment, it appears that the run loop does not begin without calling:
...

Is it possible to make the input tcp stream read operation in another run loop. It is necessary because when my application receiving data from remote server UI thread is getting stucked. So i think ...

there is list of instructions are there in one function, while
excuting that function it'l create RunLoop, now some of the
instructions creates thread or perofrm selector at that time i't run
on same ...

I discovered an issue with my sample project. I simply create a scheduledTimer that "animate" a label and then, when I reached the result I want, I invalidate the timer and I set an another one, this ...

My goal is to parse a large XML file (20 GB) with Swift. There are some performance issues with NSXMLParser and bridging to Swift objects, so I'm looking at multi-threading. Specifically the following ...

I emailed an Apple engineer last week about a problem with my NSMetadataQuery.
Here’s the email:
Hi,
I'm writing a document-based app or iOS and my method for renaming (moving the document to a new ...

My app has many threads, so I do get lot of crashes when the same variable is updated and read at the same time.
To solve this issue I decided to use NSLock and lock it when the variables are updated ...

I would like to know how I can achieve the following in objective-c,
I am doing communication with FTDI232R modem using serial communication,So I am using POSIX call to open,write and read from the ...

I have an NSTimer that should be running all the time the app is active. It is intended to show a countdown that depends on certain user's actions. I fire this timer this way:
self.timer = [NSTimer ...

I want to write a launch daemon in iOS which connects to networks programmatically. For connecting to networks, I'm using Cykey's (David Murray) WifiManager app. Before writing the daemon it worked ...

I am trying to use a NSInputStream inside a concurrent NSOperation.
I noticed that I can not schedule it on the current run loop, only the main run loop.
Why is this? Do I need to create my own run ...

I got confused while working with NSURLConnection and NSRunLoop.
I’m trying to download a large file using NSURLConnection but it’s NOT working (Not even calling a single delegate method) as expected.
...

I'm using the code below to test asynchronous calls using AFNetworking in my unit tests for iOS7. When I run the test alone, or even the entire test case, the code works fine. However, when I run the ...

I've been trying to move away from targeting specific threads and thinking more about queues like suggested by best practices and guidelines in the iOS arena.
WHAT I USED TO DO:
I used to be able to ...

I have seen in many places (including Apple Dev Forum) that to test async operations some developers recommend grabbing current run loop and let it run for a while to force async blocks to get called. ...

I'm intersted in the implementaion of NSRunLoop ability to idle/sleep its thread without intense CPU usage. How is that achieved in Objective-c? Naive solution which consumes high CPU is while(YES) ...

I perform downloading images using NSOperation and an NSOperationQueue. Every Operation retains a StoreThumbRequest object encapsulating all request specific data including a target view, waiting for ...