7#include <AppKit/AppKit.h>
8#include <objc/runtime.h>
23 Class delClass = (Class)[[[NSApplication sharedApplication] delegate]
class];
24 SEL shouldHandle = sel_registerName(
"applicationShouldHandleReopen:hasVisibleWindows:");
52 [[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.