[futurebasic] Re: [FB] Detecting application hiding by finder

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : September 2004 : Group Archive : Group : All Groups

From: Brian Stevens <brilor@...>
Date: Mon, 20 Sep 2004 07:26:30 -0700
never mind. my brain woke up later......


On Sep 19, 2004, at 11:41 AM, Brian Stevens wrote:

> Hello everyone,
>
> My application currently hides itself when it becomes a background 
> application (based on user preference using the dialog events 
> _mfSuspend & _mfResume). Using RP's suggestion to poke high values for 
> time to receive null events effectively reduces CPU use to almost zero 
> percent, and I'm happy with the results(also used a carbon event timer 
> instead of ON TIMER). My goal is to also detect a hide by the user via 
> command-H and treat it the same as the application-induced hide .  Do 
> I have to poll the raw events and is it even possible to intercept a 
> command-H before the finder sees it? I've searched all the examples, 
> but I haven't gone to the Apple developer web site. Maybe I should be 
> looking there. Code snippets, clues appreciated.  Something tells me 
> I'm approaching and/or thinking about this problem incorrectly.
>
> TIA for any input.
>
> Brian S.
>
> --
>