Re: Class clusters - infinite loop?
Re: Class clusters - infinite loop?
- Subject: Re: Class clusters - infinite loop?
- From: Sherm Pendley <email@hidden>
- Date: Sun, 26 Jun 2005 19:04:31 -0400
On Jun 25, 2005, at 9:19 PM, Wade Tregaskis wrote:
To reiterate my earlier example with NSOutputStream
I hadn't tried any subclassing with NS*Stream - and now that I've
looked at it I agree, it's not very extensible. My own experience
with NSArray and NSDictionary clusters was much easier.
I've had the good fortune to only have worked with the most elegant
of Cocoa's various clusters. You, apparently, have had the bad
fortune to have tried to work with one of the worst. Little wonder,
then, that we walked away from it with drastically different opinions!
FWIW, if I were designing the NS*Stream classes, I'd have included
delegate methods -stream:willWriteData: and -stream:didReadData:
passing an NSMutableData object to each. That would give a nice,
elegant way to encrypt or otherwise massage the data, while still
allowing the stream to handle the mechanics of whatever I/O it's doing.
sherm--
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org
_______________________________________________
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