Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!think.com!yale!quasi-eli!cs.yale.edu!cs.yale.edu!pittenger-laurence From: pittenger-laurence@cs.yale.edu (Laurence Arthur Pittenger) Newsgroups: comp.sys.mac.programmer Subject: ToolBox Questions -- HELP! Summary: various toolbox woes Keywords: resource toolbox cdef multifinder update Message-ID: <1991Apr28.045855.7644@cs.yale.edu> Date: 28 Apr 91 04:58:55 GMT Sender: news@cs.yale.edu (Usenet News) Distribution: usa Organization: Yale University Computer Science Dept., New Haven, CT 06520-2158 Lines: 48 Originator: pitteng@suned.CS.Yale.Edu Nntp-Posting-Host: zoo-gw.cs.yale.edu Here are 2 unrelated (except that they're both problems in my code) problems w/ the toolbox, where Macintosh, as usual, has completely insufficient documentation for anyone doing anything the least bit out of the ordinary: 1. Resource Manager getting CDEFs I want to do some debugging by pulling in the cdef that a control will be using. So I get it with GetResource ('CDEF', (procID >> 4)), as suggested in I.M., that is to say I get the cdef whose id is the control's procID/16. Well and good. And when the cdef is one that isn't in ROM, it works fine. But when it is in ROM, it pulls in a completely incorrect value. IM IV-3 says something about having to put the rom resource map before the system resource map prior to making the call to the ResourceManager, but it gives no information as to exactly what this means or how to do it. When I copy the cdef (id = 1 in this case) from the System into my application, however, the exact same code works fine. Therefore: --- How do I access resources in ROM? --- 2. Drawing objects directly onto the screen I have some non-window based graphics objects I need to display in a multi-finder environment. Therefore, every time I move or delete one of these objects, I have to take care of updating the things behind it myself, since I'm not doing it through the Window Manager. How do I send an update event to all the programs/windows in the background, and how do I make sure the desktop display is also updated? I can't call PostEvent, because update events are handled in a special way (apparently) and calling PostEvent w/ UpdateEvt bombs. Second, suppose my display consists only of this non-window object. How do I make sure that I will get the update events sent to my application so that I can update its display?; from what I can tell, update events are only sent to windows. Therefore: --- How do I post an Update event? --- --- How do I get update events for a non-window based display? --- Thanks in advance, LP -- Laurence A. Pittenger CSNET : pittenger-laurence@cs.yale.edu BITNET : pitlaua@yalevm , pittenger-laurence@yalecs