Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!ginosko!rex!ames!uhccux!munnari.oz.au!murtoa.cs.mu.oz.au!rob From: rob@cs.mu.oz.au (Robert Wallen) Newsgroups: comp.sys.mac.programmer Subject: Questions, questions, questions Keywords: CNTL, DITL, CDEF, Multifinder Message-ID: <2800@murtoa.cs.mu.oz.au> Date: 16 Jul 89 03:27:51 GMT Followup-To: comp.sys.mac.programmer Organization: Comp Sci, Melbourne Uni, Australia Lines: 37 A few questions for the programming intelligentsia: First, has anyone else noticed the weirdness thats displayed when using CNTL resources within a DITL. After a week of hair-pulling over a custom CDEF, I find that using FindControl() on a normal window returned clicks in my control fine, but using ModalDialog() ignored it. Turns out that ModalDialog() seems to look through the rectangles in the DITL; the CDEF gets fed the rectangle in the CNTL resource. If these two are not the same, it gets real hard to work. And ResEdit doesnt make it easy to fix things either. Does anyone have a quick way of ensuring that both rectangles are the same? Should I code around it? Second: In this silly world of Multifinder opening my desk accessories in their own application layer (that of DA Handler), is there any programmatic way that I can force them to be in the current applications layer? (Short of fiddling the low memory KeyMap to pretend the option-key is down) Third: I am allowed to pass messages 128 and up to MDEFs. Would there be any problem sending csCodes of 128 and up to DRVRs? At the moment, I am using a silly call back scheme using _Status which works fine but it would be nicer to just use _Control. Fourth: Recently, I tried a program on a guy and was thoroughly disillusioned when it bombed badly -- he still used System 3.2 on his MacPlus and had no intention of upgrading until he got a new hardware platform. So I need to build in my own support for PopUpMenuSelect() for him. And GetMenuCmd(). And God knows what others. My question: Does anyone have a definitive list of what traps appeared at each System rev? I figure I am going to write a 'PACK' style resource which will contain each of the traps that the old Mac is missing and it may end up being implemented the same way that 'PTCH' resources are, only based on System rev instead of machine. Any comments? Thanx in advance, Rob (rob@murtoa) -------------- "I meant," said Ipslore, bitterly, "what is there in this world that makes living worth while?" Death thought about it. CATS, he said eventually, CATS ARE NICE. -- Sourcery, Terry Pratchett