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

  • Prev by Date: Headers in an NSBrowser?
  • Next by Date: Re: Populate "NSLinkAttributeName" attribute from RTF?
  • Previous by thread: Re: Category Use
  • Next by thread: Re: reestablishing IBOutlets from initWithCoder ?
  • Index(es):
    • Date
    • Thread