class-cluster

What exactly is a so called “Class Cluster” in Objective-C?

青春壹個敷衍的年華 提交于 2019-11-26 12:07:01
I was reading that NSArray is just such a thing. Sounds heavy. I have 7 really fat books here on my desk about Objective-C, Cocoa and C. None of them mention Class Cluster at all, at least I can't find it in the Index at the back of the books. So what's that? echo From Apple's docs... . In short it's a design pattern used in the Foundation framework, which is probably why it's not mentioned in ObjC books. A class cluster is an architecture that groups a number of private, concrete subclasses under a public, abstract superclass. The grouping of classes in this way provides a simplified