Top "Nsthread" questions

`NSThread` is part of the Objective-C Foundation Framework and provides developers a way to create and manage threads.

NSOperation - Forcing an operation to wait others dynamically

I am trying to implement an operation queue and I have the following scenario: NSOperation A NSOperation B NSOperation C …

objective-c ios nsthread nsoperation nsoperationqueue
call a function using thread in xcode

i have created a thread in xcode and i have given the function name to be called from that thread. …

objective-c ios xcode nsthread
Difference in scheduling NSTimer in main thread and background thread?

When I call scheduledTimerWithTimeInterval:target:selector:userInfo:repeats: on the main thread and set time interval to 5 seconds code below …

ios5 nstimer nsthread
Which is the best of GCD, NSThread or NSOperationQueue?

What's the best way of multithreading in iOS as we have three options GCD, NSThread, and NSOperationQueue? I am confused …

ios multithreading grand-central-dispatch nsthread nsoperationqueue
Creating threads with parameters in Swift?

I am trying to create a thread in swift and send two parameters. I create thread and this work: let …

ios swift nsthread
How to stop a NSThread sub-thread in iphone

I created a sub-thread using NSThread in main thread NSThread *newThread = [[NSThread alloc] initWithTarget:self selector:@selector(MyThread:) object:timer]; 5 …

iphone objective-c nsthread
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
Creating threads in swift?

I am trying to spawn a thread in swift. So I have this line: . . . let thread = NSThread(target: self, selector: …

ios swift nsthread
NSThread vs. NSOperationQueue vs. ??? on the iPhone

Currently I'm using NSThread to cache images in another thread. [NSThread detachNewThreadSelector:@selector(cacheImage:) toTarget:self withObject:image]; Alternately: [self …

iphone nsthread nsoperationqueue grand-central-dispatch