Skip to content

tewha.net

Mostly about iOS software development.

Tag: NSThread

Check your thread

When you start using Grand Central Dispatch or NSOperation, you’ll want to perform some actions on the main thread and some intentionally off the main thread. This is a simple and obvious technique, but it took me a while to adopt it: You can do by asserting with NSAssert or NSCAssert for [NSThread isMainThread], just… Continue reading Check your thread

Published 2013-03-06
Categorised as Technology Tagged Debugging, iOS Development, NSThread, OS X Development

Archives

tewha.net
Proudly powered by WordPress.