templates and autocomplete should use instancetype instead of id

Originator:random4444
Number:rdar://14591760 Date Originated:30-Jul-2013 01:18 PM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 4.6.3 (4H1503)
Classification:Enhancement Reproducible:Always
 
Summary:
instancetype is a better pattern for subclassing. So templates and autocomplete should support that.

Steps to Reproduce:
1. Open Xcode (version doesn't matter, all latest versions are the same).
2. Create a new single-view project.
3. Go to the view controller.
4. Start typing init, and select autocomplete for a new init method.
5. Notice that return type is (id) instead of (instancetype)

Expected Results:
Should see instancetype instead of id in init method return types.

Actual Results:
Still see id. :(

Regression:
no

Notes:
Apple's frameworks have largely switched to using instancetype, and we'll be teaching it. It would be a lot easier if the dev tools (Xcode) supported using instancetype instead of id.

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!