Path: utzoo!attcan!uunet!mcsun!ukc!edcastle!cs.ed.ac.uk!vaila!nick From: nick@vaila.cs.ed.ac.uk (Nick Rothwell) Newsgroups: comp.sys.mac.programmer Subject: THINK Class Library gotchas Message-ID: <454@skye.cs.ed.ac.uk> Date: 26 Sep 90 11:23:22 GMT References: Sender: nnews@cs.ed.ac.uk Reply-To: nick@lfcs.ed.ac.uk Organization: Wavetables 'R' Us Lines: 25 ... just starting out on this OOP stuff. Quite nice, on the whole, but the TCL is no walk in the park. A couple of gotchas: Inside a CPane::Draw(), don't call methods to do any kinds of graphics in other windows; you'll screw up the CPane and possibly the enclosing pane(s), in rather strange ways; or it may work sporadically. Took me a day to figure this out; fairly obvious in retrospect, but TransSkel didn't have any problems with this... Documentation: It says in the manual that your CDocument Dispose() method is responsible for disposing of itsMainPane. I think this is wrong. As far as I can tell, CDocument::Dispose() correctly blows away the document, the director, the window, and all the sub-views. Is anyone keeping track of any bugs and/or misfeatures of the TCL? I haven't found any bugs yet, but it would be nice to know (I'm using 4.0.2). Nick Rothwell, Laboratory for Foundations of Computer Science, Edinburgh. nick@lfcs.ed.ac.uk !mcsun!ukc!lfcs!nick ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ "Now remember - and this is most important - you must think in Russian."