I'm going through Kochan's "Programming in Objective-C 2.0" and I have a question about Category files.
We learn about Categories in chapter 11 by adding Categories for the Fraction class to main program. I prefer to make the categories a separate file to make things a little easier to navigate, but I can't find a way to make just a .h file in XCode 3.2.3.
Here are my questions:
1) Do I make a category file out of class files?
2) If the category file is separate, do I import the category through the main program or can I call it from my "Fraction" class
Thanks
We learn about Categories in chapter 11 by adding Categories for the Fraction class to main program. I prefer to make the categories a separate file to make things a little easier to navigate, but I can't find a way to make just a .h file in XCode 3.2.3.
Here are my questions:
1) Do I make a category file out of class files?
2) If the category file is separate, do I import the category through the main program or can I call it from my "Fraction" class
Thanks