Enumeration

CFNumberType

Flags used by CFNumber to indicate the data type of a value.

Declaration

typedef enum CFNumberType : CFIndex {
    ...
} CFNumberType;

Overview

The type specified in the call to CFNumberCreate is not necessarily preserved when creating a new CFNumber object. A CFNumber object uses whatever internal storage type the creation function deems appropriate. Use the CFNumberGetType function to find out what type the CFNumber object used to store your value.

Topics

Constants

kCFNumberSInt8Type

Eight-bit, signed integer. The SInt8 data type is defined in MacTypes.h.

kCFNumberSInt16Type

Sixteen-bit, signed integer. The SInt16 data type is defined in MacTypes.h.

kCFNumberSInt32Type

Thirty-two-bit, signed integer. The SInt32 data type is defined in MacTypes.h.

kCFNumberSInt64Type

Sixty-four-bit, signed integer. The SInt64 data type is defined in MacTypes.h.

kCFNumberFloat32Type

Thirty-two-bit real. The Float32 data type is defined in MacTypes.h.

kCFNumberFloat64Type

Sixty-four-bit real. The Float64 data type is defined in MacTypes.h and conforms to the 64-bit IEEE 754 standard.

kCFNumberCharType

Basic C char type.

kCFNumberShortType

Basic C short type.

kCFNumberIntType

Basic C int type.

kCFNumberLongType

Basic C long type.

kCFNumberLongLongType

Basic C long long type.

kCFNumberFloatType

Basic C float type.

kCFNumberDoubleType

Basic C double type.

kCFNumberCFIndexType

CFIndex value.

kCFNumberNSIntegerType

NSInteger value.

kCFNumberCGFloatType

CGFloat value.

kCFNumberMaxType

Same as kCFNumberCGFloatType.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software