As per the title, I’m interested in whether it’s good or bad practice to remove #import <Cocoa/Cocoa.h> from your class headers if the same import is included in your pre-compiled header (.pch).
Apple’s boilerplate classes include the import, but the default project setup in Xcode also imports the Cocoa framework into the default pre-compiled header as well.
It seems to me this is a stylistic question, but I’m interested in opinions and advice.
I usually remove them for files that I know will only be used in the current project. For files that are re-usable (and hence might be used within a project that doesn’t have or or whatever defined in the PCH), I tend to leave them in.