Re: Subclass of NSMutableDictionary hanging
Re: Subclass of NSMutableDictionary hanging
- Subject: Re: Subclass of NSMutableDictionary hanging
- From: mmalc crawford <email@hidden>
- Date: Sat, 3 Mar 2007 21:43:52 -0800
On Mar 3, 2007, at 9:11 PM, Nick Forge wrote:
On 04/03/2007, at 3:53 PM, Jerry Krinock wrote:
Nick, I don't know any more than you do about this, except that if
you
search the list archives (cocoabuilder.com), going back five years
or so,
you'll see some long threads with people bitching about how Apple
maybe
"bent the rules" or "violated object-oriented design axioms" with
their
collection classes. I believe the short answer to your first
question is
"because NextStep/Apple says so in their documentation" and a
slightly
longer answer is "because they compromised strict OO design,
probably for
expediency, in designing their collection classes".
The documentation originally quoted makes the issue clear:
<http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaFundamentals/Co
coaObjects/chapter_3_section_9.html>
"The class cluster architecture involves a trade-off between
simplicity [and as discussed earlier in the article, efficiency] and
extensibility: Having a few public classes stand in for a multitude of
private ones makes it easier to learn and use the classes in a
framework but somewhat harder to create subclasses within any of the
clusters."
etc.
mmalc
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden