The Xcode data modeler shows me those three different int data types. When I would write code, which data types do these really correspond to on the iPhone? Are they all simply NSInteger, wrapped in an NSNumber?
As far as I see it, NSNumber only differentiates between int an NSInteger… so I guess those three end up beeing pretty much the same?
Those values correspond to the
NSAttributeTypeofNSAttributeDescription. These are analogous to the strings returned byNSValue‘sobjCTypemethod inherited byNSNumber. The core data framework needs to know how to encode/decode the value in the persistent store and also whichinitmethod to call when creating theNSNumberobject. The types inNSEntityDescriptionprovide the ability to dynamically create the correct object from storage and save them again. Generally, you don’t need to be concerned with the storage details of theNSValueclasses and subclasses. These details are hidden on purpose. If you were implementing your own custom NSAtomicStore then you will need to know. Consult the Atomic Store Programming Topics for further details.