Automatically created NSManagedObject subclasses don't use ARC

Posted by Jordan on Stack Overflow See other posts from Stack Overflow or by Jordan
Published on 2012-06-16T03:12:40Z Indexed on 2012/06/16 3:16 UTC
Read the original article Hit count: 426

My project is ARC enabled (the build settings have Objective-C Reference Counting set to YES). There are no file exceptions to this, it is enabled project wide. (Latest stable version of Xcode).

When I create an NSManagedObject subclass via File > New for a Core Data entity, the generated header uses the following in its property declarations:

@property (nonatomic, retain)

But 'retain' is not ARC!! Is this a bug, or is there something I'm missing or not understanding? There are no build warnings - if this is a bug though, how can I remedy it?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c