How do you make the Authenticate dialog front and key?
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.