Downside to including headers in every source file (Objective-C)

Posted by Michael Waterfall on Stack Overflow See other posts from Stack Overflow or by Michael Waterfall
Published on 2010-05-17T12:21:43Z Indexed on 2010/05/17 12:40 UTC
Read the original article Hit count: 119

Filed under:
|

I'm currently including my AppDelegate.h and all of my category headers into every one of my source files using the MyApp_Prefix.pch prefix header, instead of manually #importing them only where they are used. The category methods and lots of compiler #define's in my app delegate are used in lots of places in my code.

Is there any down side to this? Is it just that compilation will take longer?

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about c