Contents

NSAttributeType

The types of attribute that Core Data supports.

Declaration

enum NSAttributeType

Mentioned in

Overview

Core Data supports the following attribute types, which differentiate between bit sizes to enable data-store independence. 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

Timeinterval

no

Decimal

Nsdecimalnumber

Nsdecimalnumber

no

UUID

Nsuuid

Nsuuid

no

URI

Nsurl

String

Nsstring

Binary data

Nsdata

Transformable

Nsobject Swift.class

Composite

Undefined

Topics

Attribute types

Initializers

See Also

Standard attributes