Questions tagged [nsoperationqueue]

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

The NSOperationQueue class regulates the execution of a set of NSOperation () objects. After being added to a queue, an operation remains in that queue until it is explicitly canceled or finishes executing its task. Operations within the queue (but not yet executing) are themselves organized according to priority levels and inter-operation object dependencies and are executed accordingly. An application may create multiple operation queues and submit operations to any of them.

References:

1047 questions
-1
votes
2 answers

How do I set a delay before performing an action in UISearchDisplayDelegate?

I have a search display controller which hits an API endpoint. My current code will make a request to the API endpoint on every single char. What I want to do it make a request only when the user has stop typing for 500ms. Here is the code: In the…
oky_sabeni
  • 7,672
  • 15
  • 65
  • 89
-1
votes
1 answer

Application hangs during rapid text drawing

I am working on terminal emulation app to connect to my unix servers through telnet, i am using tableview (one cell for the one text line). What troubles me is that when server sends enormous textual data in response to some command, that makes app…
-1
votes
1 answer

Replace asynchronous requests with synchronous requests in background thread in iOS?

I tried AFHTTPRequestOperation objects combined with other NSOperation objects placed into a queue. But now I know that in AFHTTPRequestOperation only requests are performed in correct order (not response processing blocks). I don't need the correct…
Gargo
  • 1,135
  • 1
  • 10
  • 21
-1
votes
1 answer

Calculations are not processed in the background?

I have a void method that is being executed in background mode through the command NSQueue: NSOperationQueue *queue = [[NSOperationQueue alloc] init]; NSInvocationOperation *operation = [[NSInvocationOperation alloc] initWithTarget:self…
user3781174
  • 245
  • 5
  • 16
-1
votes
2 answers

NSOperationQueue manipulates NSMutableArray used by NSTableView data source

I have an NSOperationQueue whose operations are constantly manipulating the instance variable myMutableArray in the background (both adding and removing elements). maxConcurrentOperationCount is set to 1, so there should never be more than one…
tajmahal
  • 1,665
  • 3
  • 16
  • 29
-1
votes
1 answer

I want to continue to process image and store it when iOS App in background

I tried to use NSOperation and NSOperationQueue. But As getting into background, NSOperation didn't work. it stopped. Calling - (void)viewDidLoad { findFQueue = [[NSOperationQueue alloc] init]; FindFeatureOperation *testOperation =…
nao0811ta
  • 183
  • 4
  • 11
-1
votes
2 answers

Memory Issues With ARC

i have changed a non-ARC project to ARC through Edit-Refactor->Convert to ARC all the leaks had gone now except a function called this way : NSOperationQueue *queue = [NSOperationQueue new]; NSInvocationOperation *operation =…
-1
votes
2 answers

iOS correct use of multithreading

I would like to know how to use multithreading in iOS. I am aware of GCD and NSOperationQueue, but I am not sure how to use them properly. When should I use GCD/NSOperationQueue? How do I cancel a queue if the view for the results are no longer in…
-1
votes
1 answer

How to use NSOperation and dispatch queue

I am using NSoperation in Initiating request to server.Pullparser will be called and it will initiate a o/p & i/p stream.In connecitonDidRecievedata I am writing data coming from server to oStream.Imeediately I have to call custom method instead of…
-3
votes
1 answer

iOS method crashes when it's called while it's already running (using NSOperationQueue)

I've a UIViewController that contains a UITableView and when I call the method "requireObjects", this last populate the arrays to configure the table. I state that the cellForRowAtIndexPath method work properly and dequeue a number of cells based on…
Pinturikkio
  • 1,490
  • 1
  • 14
  • 28
-4
votes
1 answer

Error: 'NSOperationQueue' has been renamed to OperationQueue

In Xcode 8.0, I'm getting an error while compiling for Swift 3.0 Error: "'NSOperationQueue' has been renamed to OperationQueue" When I switch to OperationQueue.mainQueue() the method "mainQueue" doesn't exist! What's replaced it??? let manager =…
Jono Tho'ra
  • 1,476
  • 3
  • 18
  • 28
-4
votes
2 answers

NSOperationQueue background process in iPhone?

I am new in NSOperationQueue, I need to call web-service in background process using NSOperationQueue, how to do that, please help me. I have spend more time for this. Thanks in Advance
SampathKumar
  • 2,525
  • 8
  • 47
  • 82
1 2 3
69
70