• 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: my menus and LSUIElement = 1
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: my menus and LSUIElement = 1


  • Subject: Re: my menus and LSUIElement = 1
  • From: Charles Srstka <email@hidden>
  • Date: Wed, 13 Oct 2004 00:22:11 -0500

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

_______________________________________________
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
References: 
 >my menus and LSUIElement = 1 (From: Ken Victor <email@hidden>)

  • Prev by Date: Changing origin/rotation while printing?
  • Next by Date: tooltip doesn't appear until losefocus/gainfocus
  • Previous by thread: Re: my menus and LSUIElement = 1
  • Next by thread: Wrapping text in NSTableView cells
  • Index(es):
    • Date
    • Thread