The NSThread
API is largely selector-based. In iOS 10 and macOS 10.12, there is block-based API for the initializing or detaching of the thread, but not for performing some task on an existing NSThread
. If you want to use block-based API, you'd generally use dispatch or operation queues, which gets you out of the weeds of managing NSThread
instances yourself.
But if you google "NSThread block extension", you'll see there are simple third-party APIs to provide block methods for NSThread
. E.g., GTMNSThread+Blocks.h or NSThread-MCSMAdditions.