Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Subclass of NSMutableDictionary hanging




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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Re: Subclass of NSMutableDictionary hanging (From: Nick Forge <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.