[comp.sys.next] What does -calcSize do in Controls?

jacob@gore.com (Jacob Gore) (08/31/89)

The class docs for Control and Matrix, in their description of method
-calcSize, both point to -calcSize in Form as the example of why one may
want to use it.  Matrix does it to illustrate why a subclass of Matrix may
want to override Matrix's -calcSize to "do more, if necessary", and Control
uses Frame as an example of how -calcSize can be used for "more
sophisticated sizing operations".

The problem is that the example itself is missing.  The class description
of Form does not say anything about what its -calcSize method does.

I'm trying to write a subclass of Matrix that allows rows to be of
different heights and columns to be of different widths.  Do I need to
override -calcSize?

Jacob
--
Jacob Gore	Jacob@Gore.Com		{nucsrl,boulder}!gore!jacob

P.S.  Looks like another example about why source code should be made
available (at least for the object libraries).  The manual for Matrix is 21
pages long, but it is still insufficient to tell the programmer how best to
create a subclass of Matrix in order to get a slightly different behavior.

Thanks for not making the programmer reverse-engineer the instance
variables, but how about taking the guesswork out of the algorithms?  The
Application Kit is there to help the application writer, is it not?