Thanks Jens, it does work.
I should've looked at the delegate reference before asking.

2015-09-11 23:54 GMT+03:00 Jens Alfke <j...@mooseyard.com>:

>
> On Sep 11, 2015, at 1:12 PM, Nick <eveningn...@gmail.com> 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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to