Path: utzoo!utgpu!water!watmath!clyde!bellcore!faline!thumper!ulysses!andante!mit-eddie!ll-xn!ames!oliveb!amiga!jimm From: jimm@amiga.UUCP Newsgroups: comp.sys.amiga Subject: Re: Finishing up YAIP (Yet Another Input Handler), Need info. Message-ID: <2100@amiga.UUCP> Date: 12 May 88 20:37:56 GMT References: <8805120833.AA03541@cory.Berkeley.EDU> Reply-To: jimm@cloyd.UUCP (Jim Mackraz) Organization: Commodore-Amiga Inc, Los Gatos CA Lines: 52 Posted: Thu May 12 16:37:56 1988 In article <8805120833.AA03541@cory.Berkeley.EDU> dillon@CORY.BERKELEY.EDU (Matt Dillon) writes: ) The main problem I face moving WindowTo*() to another task is that )there isn't much assurance the layer will stick around between determining )the window ptr and the other task actually doing the WindowTo*(). WindowToFront() does a sanity check on the existence of the window (amazingly enough). ) I can't move WhichLayer() to the other task because that will )involve two task switches for every mouse event! I also use a signal instead of a message so that I might not call WhichLayer() for every mouse movement. Well, if you start getting deadlocks, you might throw in an AttemptSemaphore() on the SignalSemaphore inside the LayerInfo before calling WhichLayer(). (Simulating a call "AttemptLockLayerInfo()".) Note, by the way, that one good test for Sun-style window activation is the Workbench rename window/gadget. AutoPoint2 (commodities example) passes this one, but I don't use it, so I might have missed other pathologies. ) Am I making sense? More or less, eh? ) Haven't looked at Commodities yet. When I find the time... )If I find the time... Sigh. Actually, if you think about it, the all-in-one )utilities probably load the input handler less than a whole bunch of one-in-one )utilities, commodities or not. ) -Matt Well, if it really is All-in-one, and until Commodities is a little lighter on its feet, you might be right. It's point is to have only one Input Handler around for multiple applications, with user-interface standardization and ease of application development right up there with "load." I don't think All-in-one is going to be true for other people. I already have plans for input thieves that aren't appropriate for being always loaded (like my hostile picture snipper). Priority between key translators and hotkey programs is also a thorny problem. Anyway, I never fault anyone for carving their own development environment. jimm -- Jim Mackraz, I and I Computing amiga!jimm BIX:jmackraz Opinions are my own. Comments regarding the Amiga operating system, and all others, are NOT to be taken as Commodore official policy.