• 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: Class clusters - infinite loop?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Class clusters - infinite loop?
      • From: Wade Tregaskis <email@hidden>
References: 
 >Class clusters - infinite loop? (From: Steve Canfield <email@hidden>)
 >Re: Class clusters - infinite loop? (From: email@hidden)
 >Re: Class clusters - infinite loop? (From: Sherm Pendley <email@hidden>)
 >Re: Class clusters - infinite loop? (From: Wade Tregaskis <email@hidden>)
 >Re: Class clusters - infinite loop? (From: Tim Lucas <email@hidden>)
 >Re: Class clusters - infinite loop? (From: Wade Tregaskis <email@hidden>)

  • Prev by Date: PreferencePane for daemon. Zombie fest.
  • Next by Date: Re: Class clusters - infinite loop?
  • Previous by thread: Re: Class clusters - infinite loop?
  • Next by thread: Re: Class clusters - infinite loop?
  • Index(es):
    • Date
    • Thread