• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Category Use
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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>)

  • Prev by Date: Re: Multiple invocations of awakeFromNib on a single instance?
  • Next by Date: Re: Multiple invocations of awakeFromNib on a single instance?
  • Previous by thread: Category Use
  • Next by thread: Re: Category Use
  • Index(es):
    • Date
    • Thread