Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Many languages have a Boolean type, which is, of course, a fancy term for variables that store true and false values. Objective-C is no exception.
C has a Boolean data type, bool, which can take on the values true and false. Objective-C provides a similar type, BOOL, which can have the values YES and NO. Objective-C's BOOL type, incidentally, predates C's bool type by over a decade. The two different Boolean types can coexist in the same program, but when you're writing Cocoa code, you'll be using BOOL.
NOTE