• 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
How do you make the Authenticate dialog front and key?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How do you make the Authenticate dialog front and key?


  • Subject: How do you make the Authenticate dialog front and key?
  • From: Bruce Lacey <email@hidden>
  • Date: Mon, 21 Apr 2003 16:06:38 -0700

In my ApplicationDidFinishLaunching delegate method of my application controller, I initialize an authorized task controller (AuthTaskController) that manages an authorized task (agent). The AuthTaskController's initialization method launches an agent using the Authorization Services API. The AuthTaskController calls AuthorizationCopyRights() to create the authorization reference with the kAuthorizeFlagInteractionAllowed flag and the AuthorizationExecuteWithPrivileges() is subsequently called which in turn prompts the user for their name and password using a window called "Authenticate" (all provided by the Authorization Services.

However, the "Authenticate" window does not behave as I would expect. I expected the "Authenticate" window to be the front-most window and for the password text field to be the default entry field. This screenshot http://homepage.mac.com/bruce_lacey/SVUlaunch.jpg of the application just after launch depicts the problem. Note that the user must click on the "Authenticate" window to active it in order to enter their password.

Does anyone have any idea why I am seeing this behavior and how I can resolve it? Your help is most greatly appreciated.

Thanks,
Bruce
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: How do you make the Authenticate dialog front and key?
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Type to select a row in NSTableView?
  • Next by Date: Fwd: problems with NSMovieView (but may be obj alloc mistakes)
  • Previous by thread: Type to select a row in NSTableView?
  • Next by thread: Re: How do you make the Authenticate dialog front and key?
  • Index(es):
    • Date
    • Thread