Do you put #import s in .h or .m files?

Posted by iter on Stack Overflow See other posts from Stack Overflow or by iter
Published on 2010-05-05T02:20:41Z Indexed on 2010/05/05 2:28 UTC
Read the original article Hit count: 283

Filed under:

I wonder about Objective-C style.

I have FooClass.[hm] that depends on BarClass.[hm] for its implementation (though not for its interface). I can #import "BarClass.h" either directly in FooClass.m or indirectly through FooClass.h. I wonder about the common choice for this.

© Stack Overflow or respective owner

Related posts about objective-c