My question is, that I would know how to use 2 .m files for one objectclass also for one header (.h)
I have a big method with 20000+ lines and I would, that this method stand alone in a .m file and the other methods in the other .m file. I have done it, but I get errors, that the methods aren not in the one .m file. I get a link error, but i can remove the link error if i delete the second .m file.
Is it possible to create 2 .m files for one header ?
If yes pleas tell me how?
You have several approaches:
you could split your methods into 2 different categories:
I defined 2 categories for symmetry reason; of course you also need a “base”
@implementationof your class (i.e., without the category specifier); you can choose whether you define a “base” and andextensioncategory, or “base” and two categories, etc…or you might try including the second
.mfile inside of the first one:Both should work.
Let alone the possibility of refactoring your class, which would be the best option.