Andre Poenitz wrote: >> It is pointless to register an InsetXYZ_Handler before any InsetXYZ has >> been created. At least as far as the dispatch scheme is concerned. So put >> the init() call in the inset constructor. > > Are you sure we are talking about the same scheme? > > How would I have a factory creating some InsetXYZ object if the inset > class is registered with the factory in some Inset constructor?
I said, "at least as far as the dispatch scheme is concerned"... But equally, given that there is a finite number of different inset types, it would be straightforward to have a function that calls the static init() function for each type on program statr-up. -- Angus