Top "Nsoperationqueue" questions

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

NSAttributedString initWithData and NSHTMLTextDocumentType crash if not on main thread

calling NSAttributedString * as = [[NSAttributedString alloc] initWithData:[htmlString dataUsingEncoding:NSUTF8StringEncoding] options:@{NSDocumentTypeDocumentAttribute: NSHTMLTextDocumentType, NSCharacterEncodingDocumentAttribute: @(NSUTF8StringEncoding)} documentAttributes:nil error:nil]; …

ios cocoa cocoa-touch nsattributedstring nsoperationqueue
is there a way to add blocks to NSOperationQueue like this

I am trying to understand NSOperationQueue's and am trying to create the most simple example possible. I have the following: …

ios nsoperationqueue block
NSOperationQueue's addOperation: operation is finished and cannot be enqueued?

Note: This is merely a proof-of-concept. The real background task will be to continuously request 'HTTP Get' of raw data …

ios objective-c nsoperationqueue cloudkit nsblockoperation
Alamofire and Concurrent Operation Queues

I'm using Alamofire (AF) in a concurrent operation queue to run network commands in my project. Sometimes AF's completionHandler doesn't …

ios swift nsoperationqueue xcode6-beta6 alamofire
How can I know when nsoperation queue has completed all requests so that I can reload my tableview?

I am downloading data from different links using ASIHTTPRequest and NSOperationQueue to download in background thread. When a request has …

iphone objective-c ios5 asihttprequest nsoperationqueue
With NSOperationQueue, how do you add to a background queue instead of main, and how does controlling amount of operations work?

I'm loving NSOperationQueue but I'm having some issues understanding some portions of it. In the second issue of objc.io …

ios objective-c concurrency nsoperation nsoperationqueue
Waiting for multiple blocks to finish

I have those methods to retrieve some object information from the internet: - (void)downloadAppInfo:(void(^)())success failure:(void(^)(NSError *…

ios objective-c-blocks grand-central-dispatch nsoperation nsoperationqueue
Is this the correct usage of an Operation Queue completion block?

I'm using Objective-C blocks and Operation Queues for the first time. I'm loading some remote data while the main UI …

cocoa-touch ios nsoperationqueue grand-central-dispatch
Understanding sequence of operations with dependency in Swift

Referring https://developer.apple.com/reference/foundation/operation, I am having Playground setup as - class myOperation1 : Operation { override func …

ios swift nsoperation nsoperationqueue
NSOperation inside NSOperationQueue not being executed

I really need help here. I'm desperate at this point. I have NSOperation that when added to the NSOperationQueue is …

ios nsoperation nsoperationqueue