Not into the .h file. The category header should import ViewMessages.h
, and if required the category header should be imported into ViewMessages.m
. This prevents any kind of circularity.
Usually you want to differentiate between category methods that should be public (defined in a header perhaps like ViewMessages+DataEngine.h
) and category methods that are for internal use (defined in a header perhaps like ViewMessages+Private.h
). The former shouldn't be included by ViewMessages
and the latter should (again, in the .m file).