views:

296

answers:

2

I love the "Organize Imports" command in Eclipse to implicitly add and remove classes imported into a source file (as in Java or ActionScript).

Is there a command in Xcode to update the #import directives at the top of.m Objective-C files based on the classes referenced within the file?

+1  A: 

I don't think there is a command for that.

For most (all?) Cocoa stuff you add <Cocoa/Cocoa.h> and when you don't require UI just <Foundation/Foundation.h>

stefanB
Right, this works for including external and third-party frameworks, but I want something to import the project-specific classes referenced in a file.
Arrel
A: 

I'm resolving this as not currently a feature of Xcode :(

Arrel