Re: how to show other application in front of others?
Re: how to show other application in front of others?
- Subject: Re: how to show other application in front of others?
- From: "Sean McBride" <email@hidden>
- Date: Tue, 15 Mar 2005 09:56:34 -0500
- Organization: Rogue Research
On 2005-03-13 20:54, Tim.xgxu said:
> I meet a problem, when I run a application, I need other application
>to show in front of others. that means, the focus is on the other
>application, not on last one. how can I do this? Anyone give any
>suggestion is very helpful, Thanks in advance.
See SetFrontProcess() and GetProcessForPID(). This is preferable to
using an AppleScript.
But I have to echo other's comments that calling
AuthorizationExecuteWithPrivileges() on a GUI program is a bad idea. Have
you read:
<http://developer.apple.com/documentation/Security/Conceptual/
authorization_concepts/index.html?http://developer.apple.com/
documentation/Security/Conceptual/authorization_concepts/02authconcepts/
chapter_2_section_1.html>
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden