Re: Category or Protocol? (sidetrack)
Re: Category or Protocol? (sidetrack)
- Subject: Re: Category or Protocol? (sidetrack)
- From: Chris Hanson <email@hidden>
- Date: Wed, 20 Apr 2005 16:24:37 -0700
On Apr 19, 2005, at 8:18 PM, Jeff Laing wrote:
In my source files, I tend to have chunks sectioned off with:
////////////// NSApplication delegate stuff ////////////////////
comments so that I can locate things. Yes, I could use the various
popup
widgets in XCode but so far they just haven't stuck in my unconscious.
And,
of course, I need to remember the long-winded method names that
correspond
to the various delegates.
Another thing I find very frustrating about Obj-C is this insistence
on the
entire implementation being defined in the one compile-unit (ala
Pascal).
Browsing 5000+ line source code, especially "samples from the net" can
be
quite difficult.
You can use categories to split classes among multiple compilation
units, and to make it easier to locate groups of methods used for
specific purposes.
--Chris
_______________________________________________
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