Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!apple!usc!ginosko!uunet!mcsun!ukc!edcastle!lfcs!nick From: nick@lfcs.ed.ac.uk (Nick Rothwell) Newsgroups: comp.sys.mac.programmer Subject: Re: How to detect Option/Close under TransSkel? Message-ID: <264@castle.ed.ac.uk> Date: 29 Aug 89 15:42:20 GMT References: <253@castle.ed.ac.uk> <8414@hoptoad.uucp> Sender: root@castle.ed.ac.uk Reply-To: nick@lfcs.ed.ac.uk (Nick Rothwell) Organization: LFCS Enya Admiration Society Lines: 62 In-reply-to: tim@hoptoad.uucp (Tim Maroney) In article <8414@hoptoad.uucp>, tim@hoptoad (Tim Maroney) writes: >In article <253@castle.ed.ac.uk> nick@lfcs.ed.ac.uk (Nick Rothwell) writes: >>I'm writing an application which needs to detect option/click and >>command/click on the close box of windows. > >This is clearly some meaning of "need" with which I am not familiar. Ok, point taken, read that as "want". I was under the opinion that Option/Close was a reasonably standard way of closing/hiding all of a set of open windows for an application. I won't mention all the weird option open/close key combinations of the Finder, which is a standard (sic) piece of Macintosh software used by everybody. My idea was to have Option/close as "close all these windows", and Command/close as "close all except this one". The latter is, I admit, rather counter-intuitive, and I may well go for a menu item with key short-cut instead. >So is hiding features of your program in obscure command and option key >combinations. The best thing about the Mac interface is that software >advertises its features. It should advertise *all* its features MicroSoft have no problem with option/shift/"+"/menu item... :-) I have used Word and lived... >I'm not familiar with TransSkel (no FTP access) but I have a certain >amount of respect for DuBois as a programmer (if not as a theologian). >The reason he doesn't give you the modifier flag here is because this >kind of interfacing is anything but kosher. TransSkel doesn't have MultiFinder support either, but surely that's not because MultiFinder is a non-kosher :-). I sent Paul some MultiFinder support a few months ago. Nor does it have heirarchical menu support (although I don't like heir. menus, so I don't mind). Aren't these just missing features? >(And yes, I know all about the Finder's option-close feature; it's one >of the many serious mistakes made in the Finder's interface. You >should all know by now that applications from Apple are generally among >the most confusing and least standard.) OK, ok, I take the point. I thought that option/close was kosher. I'll get rid of command/close in favour of a menu item "Hide Others". I'm fairly happy with option/close, though, as a special case, because of its presence in the Finder. >>Just out of curiosity, how does MultiFinder detect Option when opening >>DAs in the application partition? Might it be this self same hack? > >Why not say "atb getkeys" in Macsbug and find out? I tried installing Macsbug from my THINK C release. Couldn't get it to do anything. I've no idea what it can do or how to get it to do it. How's that for "advertising its features"??? :-) >Tim Maroney, Mac Software Consultant, sun!hoptoad!tim, tim@toad.com Nick. -- Nick Rothwell, Laboratory for Foundations of Computer Science, Edinburgh. nick@lfcs.ed.ac.uk !mcvax!ukc!lfcs!nick ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ ~~ Fais que ton reve soit plus long que la nuit.