Skip navigation.
 
mlRe: my menus and LSUIElement = 1
FROM : Charles Srstka
DATE : Wed Oct 13 07:22:11 2004

On Oct 12, 2004, at 6:09 PM, Ken Victor wrote:

> i provide a preference that lets a user select whether or not my app
> should show in the dock. i accomplish this by editting my own
> info.plist and alternating the value of LSUIElement between 0 (show in
> dock) and 1 (don't show in dock). this part works fine. however, if i
> launch my app while LSUIElement is set to 1 (ie, don't show in dock)
> when my app comes to the front, its menus are not showing in the
> menubar! instead, whichever app was front when i came to the front,
> still has its menus in the menubar. clicking out of my app and then
> clicking on one of my app's windows does not fix the problem.
>
> i do believe this should be possible as i've seen at least one other
> app (QuicKeys) accomplish the exact same thing. but i can't figure out
> how to get my menus to show while LSUIElement is 1.
>
> any suggestions greatly appreciated!
>
> thanx,
> ken


Assuming your app is one like QuicKeys, which runs in the background
and provides some system-wide service (like QuicKeys does with keyboard
shortcuts for other apps), you can split your app into a daemon and a
configuration app (or pref pane). The daemon runs with LSUIElement set
to 0, but the configuration app can be used to change the daemon's
settings, as well as to start and stop the daemon.

Charles

Related mailsAuthorDate
mlmy menus and LSUIElement = 1 Ken Victor Oct 13, 01:09
mlRe: my menus and LSUIElement = 1 Sean McBride Oct 13, 02:29
mlRe: my menus and LSUIElement = 1 Eric Schlegel Oct 13, 05:58
mlRe: my menus and LSUIElement = 1 Charles Srstka Oct 13, 07:22