Foundation Data Types

This document describes the data types and constants found in the Foundation framework.

Symbols

Data Types

ErrorPointer
SuspensionID

Identifies an Apple event whose handling has been suspended. Can be used to resume handling of the Apple event.

Comparator

Defines the signature for a block object used for comparison operations.

Decimal

Used to describe a decimal number.

NSErrorDomainNSErrorPointer
NSHashEnumerator

Allows successive elements of a hash table to be returned each time this structure is passed to NSNextHashEnumeratorItem(_:).

NSHashTableCallBacks

Defines a structure that contains the function pointers used to configure behavior of NSHashTable with respect to elements within a hash table.

NSHashTableOptions

Components in a bit-field to specify the behavior of elements in an NSHashTable object.

NSInteger

Used to describe an integer.

NSMapEnumerator

Allows successive elements of a map table to be returned each time this structure is passed to NSNextMapEnumeratorPair(_:_:_:).

NSMapTableKeyCallBacks

The function pointers used to configure behavior of NSMapTable with respect to key elements within a map table.

NSMapTableOptions

Constants used as components in a bitfield to specify the behavior of elements (keys and values) in an NSMapTable object.

NSMapTableValueCallBacks

The function pointers used to configure behavior of NSMapTable with respect to value elements within a map table.

NSPoint

Represents a point in a Cartesian coordinate system.

NSPointArray

Type indicating a parameter is array of NSPoint structures.

NSPointPointer

Type indicating a parameter is a pointer to an NSPoint structure.

NSRange

A structure used to describe a portion of a series—such as characters in a string or objects in an NSArray object.

NSRangePointer

Type indicating a parameter is a pointer to an NSRange structure.

NSRect

Represents a rectangle.

NSRectArray

Type indicating a parameter is array of NSRect structures.

NSRectPointer

Type indicating a parameter is a pointer to an NSRect structure.

NSSize

Represents a two-dimensional size.

NSSizeArray

Type indicating a parameter is an array of NSSize structures.

NSSizePointer

Type indicating parameter is a pointer to an NSSize structure.

SocketNativeHandle

Type for the platform-specific native socket handle.

NSSwappedDouble

Opaque structure containing endian-independent double value.

NSSwappedFloat

Opaque type containing an endian-independent float value.

NSTextCheckingTypes

Defines the types of checking that are available. These values can be combined using the C-bitwise OR operator. The system supports its own internal types, and the user can extend those types by subclassing NSTextCheckingResult and adding their own custom types.

TimeInterval

Used to specify a time interval, in seconds.

NSUncaughtExceptionHandler
unichar

Type for UTF-16 code units.