dchrist@inf.ethz.ch (Dan Christensen) (12/10/90)
I've accumulated a few questions about the Communications Toolbox that hopefully some of you will be able to answer. Some of them are just curiousities, some are more important. Please respond by e-mail -- I'll summarize if there are any requests. BTW, I'm only actually using the Connection Manager and am working with MacApp 2.0. Also, some of our disks say version 1.0 and some 1.0B15. Let me know if there is a more recent version. 1) I'd like to have the CM put up its dialogs, but also would like to put up some dialogs of my own, and these seem to conflict. For example, when the user asks to open a connection, I put up a (modal) dialog saying "Attempting to open connection" with a cancel button. If the serial tool puts up it's "Sorry, that port is in use" message things get confused. First of all, if the user clicks cancel in the serial dialog, my completor is not called so the user must also click cancel in my dialog. More important, if the user clicks anywhere outside of the serial dialog, the machine crashes. Any ideas on how I can fix this? 2) The manuals mention that some tools put up menus if CMNoMenus is not set in the call to CMNew, but I have never seen any menus. The tools I have used are the serial, modem and AppleTalk tools. Do these tools just never provide menus? 3) If CMDispose is not called when the application quits (say because it crashes), subsequent runs do not work properly. Usually CMNew returns NIL, but sometimes it doesn't and things go wrong later. Is there some way to reset the CTB without rebooting the machine? 4) I've noticed that when using the AppleTalk tool, CMOpen returns 1000 if there is nobody listening. This is not a valid error code. Any ideas why it gets returned? 5) In the modem tool, the phone number entered when CMChoose is called is ignored by the tool. When attempting to make a call, the modem tool say something like "No phone number set, please enter a number". Any ideas why? Thanks very much for any help. Overall the CTB has been terrific and has made connection to other machines with a variety of methods very easy. Dan Christensen dchrist@inf.ethz.ch