CrossWindow icon indicating copy to clipboard operation
CrossWindow copied to clipboard

Mac: Added missing close, focus and resize events

Open rthrfrd opened this issue 1 year ago • 1 comments

Thanks for the work to create this! Unfortunately it wouldn't fit my needs without some of these key events on Mac, so I've done my best to add them!

I added an NSWindowDelegate to the NSWindow to get more information about what's happening with the window (looking at the NSWindowDelegate API, there's more that can now be done here I'm sure). It emits NSEvents of type ApplicationDefined (as recommended by docs) back to the NSApplication to be picked up in your existing EventQueue.

I don't have much Objective-C experience so apologies in advance! I've tried to mirror the existing implementation/style as much as possible.

rthrfrd avatar Aug 15 '24 22:08 rthrfrd