When I have Xcode automatically create the class files for the entities in the data model, any attributes I’ve specified as Boolean get a type of NSNumber in the property declaration:
@property (nonatomic, retain) NSNumber * isGood;
Since I’m using ARC, shouldn’t it be strong rather than retain?
Perhaps this happens because Boolean can’t be converted to an object. Is that correct? If so, how can I use attributes that should have boolean values?
When generating classes for a core data model, there is a checkbox “Use scalar properties for primitive types”. If you select that, it will use a BOOL type for your boolean properties. Since a primitive type is now being used, it will also not contain any retain (or strong) keywords in the declaration.