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: Bill Cheeseman <email@hidden>
- Date: Thu, 03 Jan 2002 10:38:12 -0500
Could you explain how we can get at method calls made by "hidden" classes in
Apple's own class clusters?
Here's what I have in mind: I tried to implement a subclass of NSTextField
to make the built-in undo/redo support in NSText work correctly in any text
field. I succeeded, but only by using a hack. The stumbling block to doing
it cleanly was that the undo/redo support in NSText uses lots of hidden
classes, and I couldn't find any way to know which would be used so that I
could capture every occasion where Cocoa recorded a new undoable event. I
assume this has something to do with class clusters, but maybe I'm wrong --
the text system in Cocoa may be something else. (Feel free to respond
off-list if you don't understand the question but think it might be
interesting; I'll have to look at my notes to reconstruct this problem
accurately.)
on 02-01-02 4:00 PM, Erik M. Buck at email@hidden 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 ?
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
The AppleScript Sourcebook -
http://www.AppleScriptSourcebook.com
Vermont Recipes -
http://www.stepwise.com/Articles/VermontRecipes
Croquet Club of Vermont -
http://members.valley.net/croquetvermont