NSAttributeType
The types of attribute that Core Data supports.
Declaration
enum NSAttributeTypeMentioned 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 | yes | ||
Integer 32 | yes | ||
Integer 64 | yes | ||
Double |
| yes | |
Float |
| yes | |
Boolean | yes | ||
Date | no | ||
Decimal | no | ||
UUID | no | ||
URI | — | — | |
String | — | — | |
Binary data | — | — | |
Transformable | — | — | |
Composite | — | — | — |
Undefined | — | — | — |
Topics
Attribute types
NSAttributeType.binaryDataAttributeTypeNSAttributeType.booleanAttributeTypeNSAttributeType.compositeAttributeTypeNSAttributeType.dateAttributeTypeNSAttributeType.decimalAttributeTypeNSAttributeType.doubleAttributeTypeNSAttributeType.floatAttributeTypeNSAttributeType.integer16AttributeTypeNSAttributeType.integer32AttributeTypeNSAttributeType.integer64AttributeTypeNSAttributeType.objectIDAttributeTypeNSAttributeType.stringAttributeTypeNSAttributeType.transformableAttributeTypeNSAttributeType.undefinedAttributeTypeNSAttributeType.URIAttributeTypeNSAttributeType.UUIDAttributeType