• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: how to show other application in front of others?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: how to show other application in front of others?
      • From: "Tim.xgxu" <email@hidden>
References: 
 >how to show other application in front of others? (From: "Tim.xgxu" <email@hidden>)
 >Re: how to show other application in front of others? (From: Nick Zitzmann <email@hidden>)
 >Re: how to show other application in front of others? (From: "Tim.xgxu" <email@hidden>)

  • Prev by Date: Re: Odd NSData initWithContentsOfURL: issue
  • Next by Date: Re: Why would I not be able to load the NIB file?
  • Previous by thread: Re: how to show other application in front of others?
  • Next by thread: Re: how to show other application in front of others?
  • Index(es):
    • Date
    • Thread