Path: utzoo!utgpu!watserv1!watmath!att!rutgers!usc!julius.cs.uiuc.edu!rpi!bu.edu!dartvax!eleazar.dartmouth.edu!llama From: llama@eleazar.dartmouth.edu (Joe Francis) Newsgroups: comp.sys.mac.programmer Subject: Re: Determine the foreground application Message-ID: <25162@dartvax.Dartmouth.EDU> Date: 17 Oct 90 20:05:50 GMT References: <1990Oct11.003039.459@ifi.uio.no> <5180@etsu.CMI.COM> Sender: news@dartvax.Dartmouth.EDU Organization: Dartmouth College, Hanover, NH Lines: 13 In article <5180@etsu.CMI.COM> dave@cmi.com (David Halonen) writes: >DrawMenuBar gets called as each app makes a major context switch. Patch >that sucker to keep track of who was on top before your app gets there and >then do a OpenDeskApp on that name. When DrawMenuBar is called, >currAppName has the appropriate name filled in. We've had great success >with this. Of course w/ System 7, a patch won't be necessary - I believe. OK. Let's say I'm a DrawMenuBar patch and I spy on curAppName. What is the easist way for me to go from this to finding the current app CREATOR TYPE (or does the easiest way even use curAppName??). ----------------------------------------------------------------------------- "Read My Lips: No Nude Texans!" - George Bush clearing up a misunderstanding