CFBoolean Reference

Derived from
Framework
CoreFoundation/CoreFoundation.h
Companion guide
Declared in
CFNumber.h

Overview

CFBoolean objects are used to wrap boolean values for use in Core Foundation property lists and collection types.

Functions

CFBooleanGetTypeID

Returns the Core Foundation type identifier for the CFBoolean opaque type.

CFTypeID CFBooleanGetTypeID (
   void
);
Return Value

The Core Foundation type identifier for CFBoolean opaque type.

Availability
  • Available in OS X v10.0 and later.
Declared In
CFNumber.h

CFBooleanGetValue

Returns the value of a CFBoolean object as a standard C type Boolean.

Boolean CFBooleanGetValue (
   CFBooleanRef boolean
);
Parameters
boolean

The boolean to examine.

Return Value

The value of boolean.

Availability
  • Available in OS X v10.0 and later.
Declared In
CFNumber.h

Data Types

CFBooleanRef

A reference to a CFBoolean object.

typedef const struct __CFBoolean *CFBooleanRef;
Discussion

CFBoolean objects are used to wrap boolean values for use in Core Foundation property lists and collection types.

Availability
  • Available in OS X v10.0 and later.
Declared In
CFNumber.h

Constants

Boolean Values

CFBoolean evaluates to either true or false values where kCFBooleanTrue is the true, and kCFBooleanFalse is the false value.

const CFBooleanRef kCFBooleanTrue;
const CFBooleanRef kCFBooleanFalse;
Constants
kCFBooleanTrue

Boolean true value.

Available in OS X v10.0 and later.

Declared in CFNumber.h.

kCFBooleanFalse

Boolean false value.

Available in OS X v10.0 and later.

Declared in CFNumber.h.