In CoreData Model I have an entity called TestEntity. This entity has a single attribute named 'deleted' which is of type boolean.
If I generate an automatic NSManagedObject subclass for this entity using Xcode, the generated class header looks like this:
@interface TestEntity : NSManagedObject
@property (nonatomic, retain) NSNumber * deleted;
@end
I understand why NSNumber is used for a boolean attribute. This hasn't changed from before. The problem is that it now shows me 2 warnings:
- getter attribute on property 'deleted' does not match the property inherited from 'NSManagedObject'.
- Property type 'NSNumber *' is incompatible with type 'BOOL' (aka 'bool') inherited from 'NSManagedObject'.
I don't want to use primitive types. Any ideas how to get rid of these warnings? This could be a bug with Xcode 6 beta 7 (iOS 8 beta 5) that I am using. Already filed a bug report since the automatically generated class using Xcode should not result in a compiler warning in any case.