I've read that the rule is to not
#include anything in
.h files. Is that really true, though?
Just today I've run into two separate occasions where I had to do it, one where I import a header file that contains a
typedef enum because my method stubs use it as parameters and another where I have to import a header file to declare delegatation.
What's the actual rule for these types of situations? Is it sometimes okay to do so – and if not, how can I do it differently?