Force my application to be the front most app...

Daniel Hazelbaker daniel at highdesertchurch.com
Fri May 25 15:57:37 PDT 2007


ProcessSerialNumber myPSN;

GetCurrentProcess(&myPSN);
SetFrontProcess(&myPSN);

I use a technique like this to do the opposite of you.  I use this  
type of code to force my application into the background after the  
user acknowledges something. Depending on your specific needs the  
method posted by SD might work better.

Daniel

On May 25, 2007, at 3:45 PM, Charles E. Heizer1 wrote:

> Hello,
> Can someone point me in the right direction please. I would like to  
> force my
> application to be the front most application. I know, this is not good
> practice, but my app is a Nag-ware app and in-house only.
>
> Any examples or anything would be great!
>
> Thanks,
>  -- Charles
>
> ---------------------------------------------------------------------- 
> --
> Charles Heizer
> Systems Management Solutions Group
> Lawrence Livermore National Laboratory
> 7000 East Ave.
> L-285
> Livermore, CA 94550
> Phone: (925)422-0197
> Fax:(925)422-2425
> email: heizer1 at llnl.gov
> ---------------------------------------------------------------------- 
> --
>
>
>
>
> _______________________________________________
> MacOSX-dev mailing list
> MacOSX-dev at omnigroup.com
> http://www.omnigroup.com/mailman/listinfo/macosx-dev
>



More information about the MacOSX-dev mailing list