• 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: Categories
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Categories


  • Subject: Re: Categories
  • From: Ondra Cada <email@hidden>
  • Date: Sun, 5 May 2002 00:44:49 +0200

On Sunday, May 5, 2002, at 12:33 , Shawn Erickson wrote:

I haven't looked into NSMutableData myself but it is most likely part of a class cluster. In a nut shell this means that when you use init an NSMutableData object you get back a different type of object that supports the same public messages that NSMutableData defines. So you category is against NSMutableData not NSConcreteMutableData which appears to be what you are really operating on when you attempt to send the bzip2 message.

Also, NSConcreteMutableData is a subclass of NSMutableData, and thus it inherits all NSMutableData methods, including those of categories.

There is absolutely no problem with clusters and categories; you need to be cautious only when subclassing.
---
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
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
  • Follow-Ups:
    • Re: Categories
      • From: Shawn Erickson <email@hidden>
References: 
 >Re: Categories (From: Shawn Erickson <email@hidden>)

  • Prev by Date: Re: Categories
  • Next by Date: Using notifications vs. listener lists
  • Previous by thread: Re: Categories
  • Next by thread: Re: Categories
  • Index(es):
    • Date
    • Thread