• 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: Sat, 25 Jun 2005 14:26:53 +0200

Wade,

On 25.6.2005, at 13:39, Wade Tregaskis wrote:

What I mean is, you can't subclass class clusters. At least, not without rewriting a significant portion of their functionality.

Never tried with NSOutputStream myself, but generally you can subclass clusters *without rewriting any functionality at all*, just implementing the primitive methods using an embedded object (in other words, all of the reimplementations are plain and easy one-liners). Agreeably it is somewhat inconvenient compared with "normal" subclassing, *but* it is quite far from being a bane.


I do agree though that using a cluster for a class which is to be subclassed daily is not a great design idea.

(Unless, of course, the "subclassing" actually means "making new hidden subclasses of yours", in which case it would be all right. As said, so far I haven't played with NS*Streams, so can't say which case it is there.)
---
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

References: 
 >Class clusters - infinite loop? (From: Steve Canfield <email@hidden>)
 >Re: Class clusters - infinite loop? (From: email@hidden)
 >Re: Class clusters - infinite loop? (From: Ondra Cada <email@hidden>)
 >Re: Class clusters - infinite loop? (From: Wade Tregaskis <email@hidden>)

  • Prev by Date: Re: Making Inspectors
  • Next by Date: scrollPoint in Tiger
  • Previous by thread: Re: Class clusters - infinite loop?
  • Next by thread: Re: Class clusters - infinite loop?
  • Index(es):
    • Date
    • Thread