The more I develop iPhone apps, the more reusable functions I write. At the moment I just copy them into the .m files that need them. But would it be better to have a separate .m file and #import it instead? I don't wish to compile a library, I just want to know how other folks have handled this. Thanks.
Clarification: I want other .m files to obtain the external code in such a way that they think it is their own. The selectors and the variables are recognized just as if they were in the target .m file rather than having been injected in some fashion.
Do I put the shared code in both a .m and a .h file? Do I use #import? I don't want the shared code to be regarded as its own class, needing instantiation.