Tuesday, August 16, 2011 [Tweets] [Favorites]

po [NSNumber numberWithBool:NO] Outputs 1


[T]here’s a symbol called NO that was loaded onto the address 0x9374bc6a73a0a1. Since the address is different from 0, +numberWithBool: returns an NSNumber representing a true value.

But when you’re not in gdb, the value of NO is supplied by the preprocessor.


Stay up-to-date by subscribing to the Comments RSS Feed for this post.

Leave a Comment