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

SD macosxdevlist at personal.fishh2o.com
Fri May 25 18:51:51 PDT 2007


Also to note, Daniel's version is Carbon, mine is Cocoa, depends 
which technology you are using/have access to.  Thanx for that code 
Daniel.

SD.

______________________________________________________________________
Previous message on 5/25/07 at 3:57 PM -0700
**********************************************************************
>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

--
---------------------------------------------
http://www.FishH2O.com

Please see my website for more aquatic items
and free software.
-- 
==========================================
SD

WARNING: Programming may be habit forming.


More information about the MacOSX-dev mailing list