Re: Class clusters - infinite loop?
Re: Class clusters - infinite loop?
- Subject: Re: Class clusters - infinite loop?
- From: Ondra Cada <email@hidden>
- Date: Mon, 27 Jun 2005 10:41:34 +0200
Wade,
On 27.6.2005, at 5:42, Wade Tregaskis wrote:
But now if you subclass that, you can't call that implementation of
initWithData, because it never returns self.
Why should you, on earth?!? That is, as you correctly point out,
*not* a cluster initializer, and therefore I don't follow why would
you send the message from them hidden subclasses.
Far as I can say, the reasonable pattern is that the cluster would
offer a number of init's: one designated (quite probably just "init",
quite probably just inherited, it would be sent from the hidden
subclasses inits), and any number of "initWithWhatevers", which would
return instances of hidden subclasses, and, *naturally*, would *not*
be sent from their inits.
What's the problem? I might be blind, but I don't see the slightest one.
(but for perhaps namely NS*Streams are designed poorly, which is
possible: again, I don't know them. Nevertheless, this thread seems
to be about clusters in general.)
---
Ondra Čada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden