• 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: Show / hide application menu / icon in dock / windows cycling / ...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Show / hide application menu / icon in dock / windows cycling / ...


  • Subject: Re: Show / hide application menu / icon in dock / windows cycling / ...
  • From: Ken Thomases <email@hidden>
  • Date: Mon, 27 May 2013 08:07:09 -0500

On May 27, 2013, at 6:30 AM, Robert Vojta wrote:

> Tried to change activation policy and it does work partially. LSUIElement = 1 equals to NSApplicationActivationPolicyAccessory. According to the documentation, I can change it to NSApplicationActivationPolicyRegular to show menu and show app icon in cycling. But anyway, it's not possible to go back from NSApplicationActivationPolicyRegular to NSApplicationActivationPolicyAccessory. setActivationPolicy: always returns NO and it's correct according to the documentation: Currently, NSApplicationActivationPolicyNone and NSApplicationActivationPolicyAccessory may be changed to NSApplicationActivationPolicyRegular, but other modifications are not supported.

That's what the docs say although, apparently, since Lion you can also set it to NSApplicationActivationPolicyProhibited.  See <http://www.cocoabuilder.com/archive/cocoa/318334-turning-app-into-background-app.html>, keeping in mind that Eric Schlegel is an Apple developer.

That doesn't particularly help you, though.

> Is there another way how can I achieve this behavior? LSUIElement = YES application with menu/app icon in dock/... for just one particular window? Other windows can't be opened in the same time and this is just the only visible window.

No.  The usual recommendation is to launch a helper app, one which is not an LSUIElement, to handle the interaction.

Regards,
Ken


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Show / hide application menu / icon in dock / windows cycling / ...
      • From: Robert Vojta <email@hidden>
References: 
 >Show / hide application menu / icon in dock / windows cycling / ... (From: Robert Vojta <email@hidden>)

  • Prev by Date: Show / hide application menu / icon in dock / windows cycling / ...
  • Next by Date: UIWebview back/forward buttons
  • Previous by thread: Show / hide application menu / icon in dock / windows cycling / ...
  • Next by thread: Re: Show / hide application menu / icon in dock / windows cycling / ...
  • Index(es):
    • Date
    • Thread