no #initialize in #fromNewPointer - bug or intention?

rtg at rochester.rr.com rtg at rochester.rr.com
Wed Jun 29 10:22:43 UTC 2005


I think I did this to avoid getting in trouble trying to do things
in #initialize before the object has a handle. There are a couple 
of methods that you can implement that get called at safer
times. For adding event handlers, you should implement
#initializeEventTable, and for other initialization you can use
#afterCreated. Both of these are done after the handle has
been set, so you can make API calls safely.

> From 	Cees De Groot <cdegroot at gmail.com>
> Date 	Wed, 29 Jun 2005 10:45:54 +0200
> To 	wxsqueak at discuss.squeakfoundation.org
> Subject 	no #initialize in #fromNewPointer - bug or intention?

> Subject sez all - #initialize isn't called for most of the objects in
> the wx hierarchy because #fromNewPointer doesn't call it. Is this is
> bug or is this intended to be the case?



More information about the Wxsqueak mailing list