Re: "Tricks" of the "Trade"
Re: "Tricks" of the "Trade"
- Subject: Re: "Tricks" of the "Trade"
- From: Rob Rix <email@hidden>
- Date: Thu, 7 Jun 2001 04:51:27 -0400
BTW Inline functions are truly cool, because they are like #defines,
except much more powerful. I guess I just hate scrolling through one
source code file that is miles long, I guess I could use categories, but
then again, then the main class cannot access the methods in the
categories.
It won't respond to [self someMethod] if someMethod is defined in a
category that you designed it with?
That kind of surprises me, I think...
While we're on the subject of categories, if I implemented a category on
NSObject, would the methods I added be inherited by all subclasses of
NSObject?
Also, can you make a category on a protocol (such as the NSObject protocol?
)? I doubt this one would be valid, but I am curious nonetheless.
Thanks,
-- Rob
TINRA - There Is No Right Answer