Re: Apple's excellent documentation on class clusters
Re: Apple's excellent documentation on class clusters
- Subject: Re: Apple's excellent documentation on class clusters
- From: "Craig S. Cottingham" <email@hidden>
- Date: Wed, 2 Jan 2002 15:19:38 -0600
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wednesday, January 2, 2002, at 03:00 , Erik M. Buck wrote:
I was starting to write a few pages about class clusters for
the upcoming
Cocoa Programming [Unleashed] book and I checked Apple's
documentation for
any updates since the last time I read it. I discovered the following:
http://developer.apple.com/techpubs/macosx/Cocoa/TasksAndConcepts/Programmin
gTopics/Foundation/Concepts/ClassClusters.html
Wow! That is GREAT documentation. Good job Apple. The problem is that
anything I write is going to be redundant. If all of Apple's
documentation
was as clear, concise, and correct as that, nobody would need a
new book...
So what do the great minds of this forum think. Should the
already small
section on class clusters consist of entirely of the URL to Apples
documentation ? Should I attempt to present the same
information in my own
words and probably not do as well ? Do any of you have any
questions about
the three printed pages or so represented by Apple's document
that I could
perhaps answer to add some value to my discussion of the
topic ? Should I
just drop the subject from our outline ?
I don't know if I qualify as a "great mind", but here's my US$0.02....
One thing that I thought was thin in the linked document was how
to create your own subclasses. The document makes it sound like
you can create custom subclasses for the class clusters in
Foundation, but I never noticed it describe how to "register"
your subclass with the class cluster. IOW, using the MonthArray
example from the document, how should I create instances of
MonthArray in the same transparent way as other NSArray
instances? I can take a guess at how it should be done, but I'd
rather the documentation state how explicitly. Then again, maybe
MonthArray is a bad example, because maybe we're not supposed to
create custom subclasses for Foundation class clusters. If
that's the case, I wish the document was explicit about *that*.
- --
Craig S. Cottingham
email@hidden
PGP key available from:
<
http://pgp.ai.mit.edu:11371/pks/lookup?op=get&search=0xA2FFBE41>
ID=0xA2FFBE41, fingerprint=6AA8 2E28 2404 8A95 B8FC 7EFC 136F
0CEF A2FF BE41
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (Darwin)
Comment: For info see
http://www.gnupg.org
iD8DBQE8M3lxE28M76L/vkERAizPAJ9TDLpguJO8Vejm3VXiiTkzUMtR2wCg62ZZ
k9VrH1kEZMgIhuw3ouhnxWI=
=89P4
-----END PGP SIGNATURE-----