jwinterm@jarthur.Claremont.EDU (Jim Wintermyre) (02/28/91)
Does anyone out there know how to patch traps from background-only apps so that they are in the system heap (and hence callable at any time)? I think there must be more to it than just putting the patch in the system heap, because I'm almost positive my application is doing that. I'm pretty sure I'm patching the trap correctly, since I've done that in INITs before. What I want to do is create a background-only application that I can QUIT by typing a certain command-etc. keystroke combination. I know this can be done because there's a program out there called "Darkness" (by "Lunarmobiscuit") which does exactly that. By the way, I'm inserting my patch to the trap before it jumps to the old routine, like it says to do in Inside Mac II. Maybe if I put it after the old routine... That's another thing I've been wondering - what's wrong with putting your trap patches after the old routine, as long as you're careful about passing back the correct parameter values at the end? Any suggestions would be greatly appreciated. (Sorry I don't have a really cool "picture" down here, but I wouldn't have anything to put in it!) - Jim Wintermyre jwinterm@jarthur.claremont.edu jwintermyre@hmcvax.claremont.edu