GenView questions

Edward P Di Geronimo Jr. (edwdig@juno.com)
Tue, 21 Jan 1997 00:05:30 PST

Hi everyone,

First quick note, this is a backup email address I have. My school's
server is a little messed up right now so I can't send email through it
until tomorrow. If you reply please use my normal @bergen.org address
(Juno doesn't allow setting a reply-to address or I would've)

Anyway, I'm trying to subclass GenViewClass, and I ran across a couple
things.

First, isn't there a message sent to every object when it's created? I
thought it was MSG_META_INITIALIZE, but that wasn't getting sent to the
object. Is there something I can intercept before the object comes
onscreen? I tried doing it in the open app message, but I can't because
ObjDerefGen was crashing when I used it before the callsuper.

Next, I want to calculate the size of the view based on some instance
data and font sizes. To get the font size, I have to have a gstate. To
get a gstate, I have to have a windowhandle. Is there any way I can do
that stuff before MSG_META_EXPOSED ? Because if I try to set the bounds
from in there it doesn't resize the view.