7#include <AppKit/AppKit.h>
8#include <objc/runtime.h>
24 (Class)[[[NSApplication sharedApplication] delegate]
class];
26 sel_registerName(
"applicationShouldHandleReopen:hasVisibleWindows:");
49 [[NSApplication sharedApplication] activateIgnoringOtherApps:YES];
macOS-specific Dock icon handler.
static MacDockIconHandler * instance()
static MacDockIconHandler * s_instance
void setupDockClickHandler()
bool dockClickHandler(id self, SEL _cmd,...)
void ForceActivation()
Force application activation on macOS.