Top "Nsoperationqueue" questions

On Mac OS X, the NSOperationQueue class regulates the execution of a set of NSOperation objects.

dispatch_after equivalent in NSOperationQueue

I'm moving my code from regular GCD to NSOperationQueue because I need some of the functionality. A lot of my …

ios objective-c xcode grand-central-dispatch nsoperationqueue
Log which queue/thread a method is running on

Is there a way to log the thread or queue that a method is running on / called from? Something like: …

ios objective-c multithreading grand-central-dispatch nsoperationqueue
[NSOperation cancelAllOperations]; does not stop the operation

xCode 4.4.1 OSX 10.8.2, looks like [operation cancelAllOperations]; isn't working - (void)applicationDidFinishLaunching:(NSNotification *)aNotification { NSOperationQueue *operation = [[NSOperationQueue alloc] init]; [operation setMaxConcurrentOperationCount: 1]; […

cocoa nsoperationqueue
NSOperationqueue background, download images

I created a NSOperationQueue to download images (from Twitter for Cell): NSOperationQueue *queue = [[NSOperationQueue alloc]init]; [queue addOperationWithBlock:^{ NSString *ImagesUrl = [[…

ios cocoa-touch asynchronous grand-central-dispatch nsoperationqueue
How to do two concurrent API calls in swift 4

Thanks in advance for help, I have two API calls, both are concurrent and any call could be success first(…

ios swift4 nsoperationqueue nsoperation swift4.1
NSOperationQueue mainQueue vs performSelectorOnMainThread?

What's the difference between this: [[NSOperationQueue mainQueue] addOperationWithBlock:^{ [self doSomthing:object]; }]; and this: [self performSelectorOnMainThread:@selector(doSomething:) withObject:object waitUntilDone:…

ios iphone objective-c concurrency nsoperationqueue
NSFetchedResultsController doesn't show updates from a different context

I have an NSFetchedResultsController and a few operations updates managed objects on separate threads via NSOperationQueue. The FRC (with its …

ios core-data nsfetchedresultscontroller nsmanagedobjectcontext nsoperationqueue
Default value of maxConcurrentOperationCount for NSOperationQueue

As the title suggests, what is the default value of the maxConcurrentOperationCount for NSOperationQueue? Is it set to a value …

ios objective-c nsoperation nsoperationqueue
When does an NSOperationQueue start its first operation?

I've created a test project in which I'm testing my assumptions about NSOperation and NSOperationQueue before using them in my …

cocoa-touch cocoa nsoperationqueue
How to stop current NSOperation?

I'm using NSOperationQueue, and NSOperation for running some function on background click. But I want to be able, when user …

objective-c macos cocoa nsoperation nsoperationqueue