Apple Developer Connection
Member Login Log In | Not a Member? Contact ADC

Next Page > Hide TOC

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
Related Sample Code
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
Related Sample Code
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
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 Mac OS X v10.0 and later.

Declared in CFNumber.h.

kCFBooleanFalse

Boolean false value.

Available in Mac OS X v10.0 and later.

Declared in CFNumber.h.



Next Page > Hide TOC


Last updated: 2005-12-06




Did this document help you?
Yes: Tell us what works for you.

It’s good, but: Report typos, inaccuracies, and so forth.

It wasn’t helpful: Tell us what would have helped.
Get information on Apple products.
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Copyright © 2007 Apple Inc.
All rights reserved. | Terms of use | Privacy Notice