Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!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: ResEdit1.3d1 & CDEFs Keywords: ResEdit, CDEF, Bugs Message-ID: <2801@murtoa.cs.mu.oz.au> Date: 16 Jul 89 07:28:52 GMT Followup-To: comp.sys.mac.programmer Organization: Comp Sci, Melbourne Uni, Australia Lines: 36 One for whoever maintains ResEdit. Having just downloaded ResEdit1.3d1 (which identifies itself as 1.2b4.1 when you use option-command-About ResEdit), I have a minor whinge. Using previous 1.2 versions, I was able to include custom CDEFs in resource files, point CNTL resources at them, point DITLs at the CNTL and ResEdit would handle DLOGs all fine, calling my CDEF to display the controls, etc. However, now (with 1.3d1) I get address errors when I try to open the DLOG. Using TMONs discipline, I can see that somewhere in FindDItem(), NewDialog is doing a NewControl() followed by a MoveControl() without checking that the control was created ok. Examining the code with TMON would appear to show that ResEdit is doing UseResFile(appRefNum) followed by a _NewDialog(), then a UseResFile() afterwards so I presume the problem is that the CDEF is not available and NewControl() fails accordingly. I blame the ROM but thats irrelevant. I would really like my CDEFs to work again. Why did ResEdit suddenly decide not to allow CDEFs in the current resource file to be used? And can this feature be put back? Yes, I know I can paste the CDEF into ResEdit. I don't want to because I am developing the CDEF as well as the application that is using it at the same time and both are relatively volatile. Besides, god knows what internal twists ResEdit will get into if I start adding CDEFS to itself with itself. Oh, a (slightly) related issue. Has anyone had the hassle using ResEdit & LSC under MultiFinder where ResEdit doesn't close a file properly and LSC barfs on trying to write its linked output into the file. Thanx in advance, Rob -------------- "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