Using bitwise operators in C and Objective-C

Mon, Nov 11

One of the wonderful(?) things about Objective-C is that it’s based on C. Part of the power of C is bit-bashing, where you can manipulate individual bits inside of a piece of memory…That being said, there are times where bitwise operations appear in the Cocoa APIs, so it’s good to be comfortable with a couple of basic operations.

With that intro, Mark Dalrymple of Big Nerd Ranch covers the basics of working with bits and the related operators.