Comments on: Multithreading on iOS And Mac OS X Using NSOperations. https://www.andyibanez.com/multithreading-ios-mac-os-x-using-nsoperations/ Teaching you cool stuff since 2012. Fri, 21 Jun 2019 10:32:11 +0000 hourly 1 https://wordpress.org/?v=4.9.10 By: Jack https://www.andyibanez.com/multithreading-ios-mac-os-x-using-nsoperations/#comment-446 Thu, 12 Mar 2015 08:20:32 +0000 http://andyibanez.com/?p=117#comment-446 Hi, Please let me know how can we do that as you said:
“Additionally, when you abort an operation manually, you should set isExecuting and isFinished to YES.”

isExecuting and isFinished are readonly. How can we change them on aborting operation.

]]>
By: virendra https://www.andyibanez.com/multithreading-ios-mac-os-x-using-nsoperations/#comment-141 Tue, 03 Jun 2014 07:24:00 +0000 http://andyibanez.com/?p=117#comment-141 Thanx

]]>
By: Andrés Ibañez https://www.andyibanez.com/multithreading-ios-mac-os-x-using-nsoperations/#comment-140 Mon, 02 Jun 2014 16:39:05 +0000 http://andyibanez.com/?p=117#comment-140 You can add many execution blocks to an NSBlockOperation. If you add more blocks to a currently running NSBlockOperation, the program will raise an exception. This will also happen if you try to add more blocks when the operation has finished execution

As for your own NSOperation, Apple’s docs cover that. I didn’t give it deep coverage because not many people create their own, but here you go in case you’re interested:

https://developer.apple.com/library/mac/documentation/general/conceptual/concurrencyprogrammingguide/OperationObjects/OperationObjects.html#//apple_ref/doc/uid/TP40008091-CH101-SW16

]]>
By: virendra https://www.andyibanez.com/multithreading-ios-mac-os-x-using-nsoperations/#comment-139 Mon, 02 Jun 2014 12:39:36 +0000 http://andyibanez.com/?p=117#comment-139 Great tutorial. Following are two points i want to ask you

1)Will you please elaborate this sentence of yours with ex. “Second, if you add any block objects to the operation after creating it, you have to add them before the operation starts executing (IE before adding the whole operation to the queue). If you add more blocks to the operation while it is running or after it has finished, the program will raise an exception.” ?

2) Where to explore more for section “Your Own NSOperation”?

]]>
By: Avinash https://www.andyibanez.com/multithreading-ios-mac-os-x-using-nsoperations/#comment-138 Mon, 02 Jun 2014 08:48:09 +0000 http://andyibanez.com/?p=117#comment-138 Nice tutorial

]]>
By: YPR https://www.andyibanez.com/multithreading-ios-mac-os-x-using-nsoperations/#comment-134 Thu, 29 May 2014 16:58:11 +0000 http://andyibanez.com/?p=117#comment-134 Very useful tutorial, I am searching exactly for this.i learned lot from this post
thanks for the post.

]]>
By: Lakhvir https://www.andyibanez.com/multithreading-ios-mac-os-x-using-nsoperations/#comment-78 Sat, 22 Mar 2014 01:19:56 +0000 http://andyibanez.com/?p=117#comment-78 Great tutorial. Learned a lot, very effective method of explaining concepts. I am glad to learn that now I am in the intermediate category of developers 🙂

]]>