Re: Categories
Re: Categories
- Subject: Re: Categories
- From: Charles Srstka <email@hidden>
- Date: Sat, 4 May 2002 19:48:48 -0500
On Saturday, May 4, 2002, at 07:22 PM, Shawn Erickson wrote:
On Saturday, May 4, 2002, at 05:10 PM, Nat! wrote:
Yeah, that is true.
I wasn't sure if NSConcreteMutableData was a sub-class of
NSMutableData or not (it doesn't have to be).
yes it does
It does? I could be wrong but..
Things come back by way of an id out of init (initWithSomething) and
hence could be anything. As long as it responded to the message I send
it things will be fine.
Basically I can do the following...
id someThing;
someThing = [NSMutableData dataWithBytes:[myString cString]
length:[myString length]];
[id getBytes:someBuffer];
and...
NSThread stupidBut;
stupidBut = [NSMutableData dataWithBytes:[myString cString]
length:[myString
length]];
[((id) stupidBut) getBytes:someBuffer];
The compiler type checking will not complain about the above.
Yes, it will. It will say, "Statically allocated objects not
supported." ;-)
_______________________________________________
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.