Re: Breaking source file into multiple files?
Re: Breaking source file into multiple files?
- Subject: Re: Breaking source file into multiple files?
- From: Scott Anguish <email@hidden>
- Date: Wed, 15 Sep 2004 00:58:40 -0400
On Sep 14, 2004, at 10:46 PM, M. Uli Kusterer wrote:
Don't know of any cons. :)
Well, a category can't define its own instance variables. So if one of
your categories needs an instance variable, you need to declare that
waaay over in the main header file for that class.
It's a con around which you can work, but it definitely makes thinking
about what to extract from the file more interesting.
the typical way around this is to actually declare _everything_ in the
main MyClass.h file.. variables, defines, method names, everything.
then just put the implementation into multiple .m files (I like
MyClass+CategoryName.m)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden