Xcode Core Data Automatic Subclass Generation Uses Reference Types Instead of Value Types

Originator:rileytestut
Number:rdar://27512827 Date Originated:23-Jul-2016 05:27 PM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 8
Classification:Other Bug Reproducible:Always
 
Summary:
When using the new Xcode Core Data Automatic Subclass Generation, the generated swift files should use value types instead of reference types.

Steps to Reproduce:
1) Add an attribute to a Core Data entity in the Entity Editor
2) Set its type to NSDate or NSData
3) Generate the files
4) Attempt to use the attribute in code

Expected Results:
Attribute uses Date or Data type

Actual Results:
Attribute uses NSDate or NSData type

Regression:
n/a

Notes:
Overall, these improvements to code generation for Core Data is _much_ appreciate, so thank you so much!

Comments


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!