Re: Category Use
Re: Category Use
- Subject: Re: Category Use
- From: "John C. Randolph" <email@hidden>
- Date: Thu, 24 Jan 2002 15:36:47 -0800
On Thursday, January 24, 2002, at 02:36 PM, David Kopec wrote:
I haven't really used Categories before. (I really should've,
without them I've been forced to implement poor design.) Now
that I've defined my category, do I need to import the
category's header file or can I just use the standard class
that it extends(NSMovie in this case)? If the answer is no,
then how does the compiler/linker understand the category?
The typical practice is for the category's .h file to import the
framework header, and any other headers on which code using the
category will need, and for the .m file to import the category's
header, as well as any other headers that are used internally by
code in the category.
John C. Randolph <email@hidden> (408) 974-8819
Sr. Software Engineer, Cocoa Evangelism
Apple Worldwide Developer Relations
References: | |
| >Category Use (From: David Kopec <email@hidden>) |