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: Nick Zitzmann <email@hidden>
- Date: Sun, 13 Mar 2005 21:38:53 -0700
On Mar 13, 2005, at 6:58 PM, Tim.xgxu wrote:
because the other application need privilege, so I use
AuthorizationExecuteWithPrivileges(...) to call the other
application, but it doesn't show in front of others. I need to click
it, how can I change to other application without clicking it?
Well, you could send it the "activate" AppleScript command using
NSAppleScript, but why are you running a GUI app using AEWP()? That
doesn't sound like a very good idea to me for security reasons. Instead
of doing what you're trying to do, if you need to perform some
privileged operation, you should use AEWP() to launch a tool instead.
See Apple's AuthorizationSample sample code for details.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
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