Re: Categories
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.