Re: Category Use
Re: Category Use
- Subject: Re: Category Use
- From: Ondra Cada <email@hidden>
- Date: Fri, 25 Jan 2002 02:04:29 +0100
David,
>
>>>>> David Kopec (DK) wrote at Thu, 24 Jan 2002 17:36:05 -0500:
DK> I haven't really used Categories before. (I really should've, without
DK> them I've been forced to implement poor design.) Now that I've defined
DK> my category, do I need to import the category's header file or can I
DK> just use the standard class that it extends(NSMovie in this case)? If
DK> the answer is no, then how does the compiler/linker understand the
DK> category?
More or less, headers are useless in the sense that without them, the code
would work the very same way.
(Exceptions are value casts in arguments and return, but that's not an issue
in this context.)
Whenever category is _linked in_ -- be it statically or dynamically -- it is
used, automatically and properly.
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
2K Development: email@hidden
http://www.2kdevelopment.cz
private email@hidden
http://www.ocs.cz/oc
References: | |
| >Category Use (From: David Kopec <email@hidden>) |