• 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: Detecting second launch of the "LSUIElement=1"-application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Detecting second launch of the "LSUIElement=1"-application


  • Subject: Re: Detecting second launch of the "LSUIElement=1"-application
  • From: Jens Alfke <email@hidden>
  • Date: Fri, 11 Sep 2015 13:54:17 -0700

> On Sep 11, 2015, at 1:12 PM, Nick <email@hidden> wrote:
>
> Can I somehow detect that my application has been launched again, when it
> is already running (it has an icon in NSStatusBar, but no icon in Dock)?

The usual way is to implement the NSApplication delegate method -applicationShouldHandleReopen:hasVisibleWindows: … but I have no idea if that works in an LSUIElement app. It’s worth a try.

—Jens
_______________________________________________

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: Detecting second launch of the "LSUIElement=1"-application
      • From: Nick <email@hidden>
References: 
 >Detecting second launch of the "LSUIElement=1"-application (From: Nick <email@hidden>)

  • Prev by Date: Detecting second launch of the "LSUIElement=1"-application
  • Next by Date: Re: Detecting second launch of the "LSUIElement=1"-application
  • Previous by thread: Detecting second launch of the "LSUIElement=1"-application
  • Next by thread: Re: Detecting second launch of the "LSUIElement=1"-application
  • Index(es):
    • Date
    • Thread