@bcapps you're right.  Apple seems to be using `NSUInteger` instead of `NSInteger`.  I changed the pull request to reflect that.

Additionally, I added the bitmask shifting operations to the example to be clearer.