Contents

NSAttributeDescription.AttributeType

The types of attributes that Core Data supports.

Declaration

struct AttributeType

Overview

Core Data attribute types explicitly distinguish between bit size. This allows their values to exist independent of the persistent store that contains them. A scalar option is available for a number of attribute types, in some cases by default.

Attribute type

Type

Scalar type

Scalar by default

Integer 16

Nsnumber

Int16

Yes

Integer 32

Nsnumber

Int32

Yes

Integer 64

Nsnumber

Int64

Yes

Double

Nsnumber

Double

Yes

Float

Nsnumber

Float

Yes

Boolean

Nsnumber

Bool

Yes

Date

Nsdate

Timeinterval

No

Decimal

Nsdecimalnumber

Nsdecimalnumber

No

UUID

Uuid

Uuid

No

URI

Url

String

String

Binary data

Data

Transformable

Nsobject Swift.class

Composite

Undefined

Topics

Attribute Types

See Also

Managing the type