Xcode 5.0 auto generated NSManagedObject subclass template use retain instead strong

Originator:jacopo
Number:rdar://15989635 Date Originated:05-Feb-2014 04:31 PM
Status:Duplicate of 9961260 (Open) Resolved:
Product:Developer Tools Product Version:5.0.2 (5A3005)
Classification:Enhancement Reproducible:Always
 
Summary:
As in Xcode 5.0 the auto generated code created for the NSManagedObject subclasses from a CoreData model use retain instead of strong even if ARC is enabled in the project.
For consistency throughout the project it would be nice if Xcode can generate the code with the ARC memory qualifier instead using always a single file template.

Steps to Reproduce:
1. Create a new project with CoreData and ARC enabled
2. Create a new entity in the model
3. Add a bunch of attribute to the new entity
4. With the CoreData file selected go to Editor->Create NSManagedObject Subclass...
5. Select the CoreData database
6. Select the entity created
7. Save the files
8. Open the .h file of the subclass that has been generated

Expected Results:
The memory qualifier of the property would be strong if the project has ARC enabled or retain if ARC is disabled.

Actual Results:
In both cases the generated file properties use retain.

Comments

It's stupid I know, but this is really annoying me.


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!