Letting macOS manage your Window Menu

I was curious about Sams post and wanted to see if I could still add my own menu items and respond to them

And the answer is YOU CAN !!! which is really nice

Here’s a sample app


Glad you like it.

I have just built an example app that handles the window menu options that Apple requires. It is less sophisticated (i.e. simple code as I am not too bright) than npalardy’s approach, but has all the functionality required as far as I can tell.
If anyone is interested, happy to share

I missed your original post until today.
Thank you for this share!