Enumeration

NSAttributeType

The possible types of Core Data attributes.

Declaration

typedef enum NSAttributeType : NSUInteger {
    ...
} NSAttributeType;

Overview

Core Data supports the following attribute types. For some types, a scalar option is available.

Attribute Type

Type

Scalar Type

Scalar by Default?

Integer 16

NSNumber

int16_t

yes

Integer 32

NSNumber

int32_t

yes

Integer 64

NSNumber

int64_t

yes

Double

NSNumber

double

yes

Float

NSNumber

float

yes

Boolean

NSNumber

BOOL

yes

Date

NSDate

NSTimeInterval

no

Decimal

NSDecimalNumber

NSDecimalNumber

no

UUID

NSUUID

NSUUID

no

URI

NSURL

String

NSString

Binary Data

NSData

Transformable

NSObject

Undefined

Topics

Attribute Types

NSUndefinedAttributeType

An undefined attribute type.

NSInteger16AttributeType

A 16-bit signed integer attribute.

NSInteger32AttributeType

A 32-bit signed integer attribute.

NSInteger64AttributeType

A 64-bit signed integer attribute.

NSDecimalAttributeType

An NSDecimalNumber attribute.

NSDoubleAttributeType

A double attribute.

NSFloatAttributeType

A float attribute.

NSStringAttributeType

An NSString attribute.

NSBooleanAttributeType

A Boolean attribute.

NSDateAttributeType

An NSDate attribute.

NSBinaryDataAttributeType

An NSData attribute.

NSTransformableAttributeType

An attribute that uses a value transformer.

NSObjectIDAttributeType

The object ID attribute.

NSURIAttributeType

A URI attribute.

NSUUIDAttributeType

A UUID attribute.

See Also

Attributes and Relationships

NSPropertyDescription

A description of a property of a Core Data entity.

NSAttributeDescription

A description of an attribute of a Core Data entity.

NSDerivedAttributeDescription

A description of an attribute of a Core Data entity that derives its value from one or more other properties.

NSRelationshipDescription

A description of a relationship of a Core Data entity.