Contents

OSBoolean

OSBoolean wraps a boolean value in a C++ object for use in Libkern collections.

Declaration

class OSBoolean : OSObject

Overview

OSBoolean represents a boolean true/false value as a Libkern C++ object. There are only two instances of OSBoolean, kOSBooleanTrue and kOSBooleanFalse. These are shared globally and returned by the instance-creation function withBoolean. Thus, you can use pointer comparison to test whether two OSBoolean objects are equal.

Topics

Miscellaneous

Instance Methods

Type Methods

See Also

Simple Types