I've got an application which puts itself onto the menu bar, but it also leaves an icon on the dock. This all works fine under Windows, but not macOS.
I've found LSUIElements, which should be set in the info.plist file in the package, but I'd like to be able to do it programmatically.