[comp.sys.mac.programmer] Dialog Objects in Think C 4.0

jamesm@sco.COM (James M. Moore) (08/31/89)

Has anyone tried to get modeless dialogs up under the Think class
library?  So far I've created new instances of CSwitchboard (replacing
ProcessEvent()) and I've added an intermediate application class that
uses the new switchboard.  The point of doing this was to add about
five lines of code in ProcessEvent() that call IsDialogEvent and
DialogSelect.  I also create a new subclass of CView for dialogs
called BDialog.  (I'm using BFoobar for my classes so they come before
the Think library files.)  Works fine until I get around to removing
the dialog, and then I get tangled up in getting the BDialog object
out of the CDesktop stuff.

Is this the right way to go, or am I missing something basic?  It
seems like an awful lot of trouble to get something that might be
there in the first place.  Or has someone else already invented this
wheel?
-- 
James Moore                            | You will face many tests in life.
Santa Cruz Operation UNIX Tech Support |
jamesm@sco.com                         | This is not one of them.