I'm trying to write a game for MacOS and I'd like to be able to provide a menu option, when the app isn't running, that allows them to jump straight back to the last game level they were playing. My limited understanding is that NSDockTilePlugins is the correct way to do this, as from MacOS 10.6, but I cannot find an actual Objective C tutorial from Apple on how to implement this correctly?
Is this the only way to implement non-runtime menus? Can anyone please point me in the right direction?
After further Googling I found a github repo that contained a DockTilePlugin Sample that was 7 years old. I have updated the sample so that it builds and runs with XCode 11 and enhanced it slightly to suit my needs, as I wanted to be able to dynamically update the App's DockTile menu when the app isn't running.
I hope others find this update sample useful.
The updated project, with the original author's ReadMe.rtf can be found on GitHub here -
https://github.com/CartBlanche/MacDockTileSample
If someone with more Objective C experience can look over the code and tell me if there are better ways of doing things, I'll update the code, or send me a PR.