[ER] Xcode should offer to add missing header imports

Originator:pburleson
Number:rdar://9751648 Date Originated:10-Jul-2011 11:03 PM
Status:Open Resolved:
Product:Developer Tools Product Version:4.0.2 build 4A2002a
Classification:Enhancement Reproducible:N/A
 
Summary:

Xcode should offer to import a missing header when a class is used and can't be found but is known from the available headers.

Steps to Reproduce:

1. Create a new Objective-C class

2. Add code that uses another Objective-C class that hasn't been imported yet. 

3. Compile

4. Error about unkown symbols

Expected Results:

Xcode offers a Fix It to import the header for the given class.

Actual Results:

No offeres to help import

Notes:

In .h files this feature could offer to add a @class directive.

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!