Re: NSData object trouble with <16KB
Re: NSData object trouble with <16KB
- Subject: Re: NSData object trouble with <16KB
- From: Michael Hall <email@hidden>
- Date: Thu, 22 Apr 2004 17:50:34 -0500
On Thursday, April 22, 2004, at 05:04 PM, David Piasecki wrote:
Thanks. That makes more sense now. I had previously assumed (coming
from the C++/Java world) that alloc created a new object and init or
initFoo simply called different constructors.
Applet init's from Java are I think somewhat similar except more
optional. It seems for Obj-C like init should _always_ be invoked and
should _always_ invoke supers. I've already broke these rules since
they seemed to be causing problems ending up with the correct self/id
for me as well but I have had an uneasy feeling doing so. I got over it
though as long as things seemed to work? It seems like from my own
newbie point of view that if in fact these are optional and not
strictly required that classes should document whether they actually
need to implement this or do have to invoke supers.
I think sometimes the individual class documentation will say this but
in some places there are more blanket statements that some of this must
always be done when it might a good habit to have but isn't in fact
always necessary?
Mike Hall <mikehall at spacestar dot net>
<
http://www.spacestar.net/users/mikehall>
_______________________________________________
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.