Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: LSUIElement problem [reposted with correct title]



My problem is that when the control panel launches the agent, the agent becomes the frontmost application. The control panel's window is inactive; its menus still appear, although greyed out. The worst of it is that the agent receives key events, thus when a user presses command-Q, thinking they're quitting the control panel, they quit the agent. Grrr.

Rather than running it as an LSUIElement, you might want to try and run it as an LSBackgroundOnly.

When an LSUIElement runs, it processes keyboard events, so any time a dialog shows up for an LSUIElement process your users could inadvertently kill it by typing cmd-Q, even though its menu is hidden. The apparent frontmost app's menus remain visible but are disabled.

When an LSBackgroundOnly runs, it does not process keyboard events, although it does process mouse events. The apparent frontmost app's menus remain visible and enabled.


-- John
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.