|
From: James W. W. <ja...@fr...> - 2005-07-01 02:20:50
|
A while back I added a callback mechanism specified via custom elements: kQ3CallbackElementTypeBeforeRender kQ3CallbackElementTypeAfterRender kQ3CallbackElementTypeBeforePick kQ3CallbackElementTypeAfterPick I just realized that we could take a different approach which would be more powerful and have less overhead. One could create a custom subclass of the View class, and override appropriate methods such as submit-retained-for-rendering. To make this possible, I would need to make a couple of simple changes in E3View.c, and define some method type constants in some public header. One nice thing about the approach I am suggesting is that you wouldn't need separate before and after functions. You could just do some stuff before, call through to the standard method, and then do some more stuff. Furthermore, your method could actually submit a different object than was passed to you, which is not possible with the current callbacks. -- James W. Walker, ScriptPerfection Enterprises, Inc. <http://www.write-brain.com/> |