Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!asuvax!stjhmc!p88.f15.n300.z1.fidonet.org!Lawson.English From: Lawson.English@p88.f15.n300.z1.fidonet.org (Lawson English) Newsgroups: comp.sys.mac.programmer Subject: Novice Think C Class Questions Message-ID: <3895.27D0636D@stjhmc.fidonet.org> Date: 1 Mar 91 20:39:56 GMT Sender: ufgate@stjhmc.fidonet.org (newsout1.26) Organization: FidoNet node 1:300/15.88 - Tucson Apple Core, Tucson AZ Lines: 59 Kevin Brewer writes in a message to All KB> 1) I have an appliction that should have three or four windows. KB> My (mis?)understanding of the Document Class is that the Doc KB> Class should control the windows, yet you can only have one KB> window associated with each doc instance. How do you create KB> more than one window - say a drawing pane and a text edit pane KB> - for each doc? Obviously, I'm confused. I would appreciate KB> any direction on this. Normally, one can have drawing in a drawing pane and text in and edit pane on the same window, have a button or menu item to resize them out of your way or some other hack. If you want to go the route of 2 or more windows associated with the same file/document, you can do as I did: create a subclass of CBeaurocrat called CWindowLiason, that handles all of the window creation and chain-of-command stuff before it reaches the document. You have to modify CWIndow to get dispose/free itsWindowLiason as part of yourWindow.free, and several other things in your document to override close/openWind, etc. It's a little complicated to post, but I can E-mail the relevant classes if you like. KB> 2) I know I need to read more on using the Think C Classes. A KB> while back, (unfortunately before I started using Think C and KB> the Classes) there was some recommendations for books. Could KB> someone direct me to good books? Try the Macintosh C(Pascal) Programming Primer Vol II. Also subscribe to Thinkin' Cap from SPLAsh (Symantec Programming Languages Assoc.) SPLAsh Resources 1678 Shattuck Ave #302 Berkeley CA 94709 Greg (TCL's) DOW is the editor/founder. There is also a disk magazine called Prepare() that sells for $495/year. Heard good stuff about the source code from it including a TCL View-Editor. The editor of this tool lurks here. KB> 3) Where is the least expensive place to find books like the KB> IM series? Should I join a developers assoc I really have no idea. Used bookstores seems to be the best bet... Maybe someone has the odd extra set lying around here? Lawson -- Uucp: ...{gatech,ames,rutgers}!ncar!asuvax!stjhmc!300!15.88!Lawson.English Internet: Lawson.English@p88.f15.n300.z1.fidonet.org