How would I make a checkbox hide the dock icon if it was checked?
I have made a checkbox toggle a menubar item but how would you do it with the dock icon?
Looking for some code
You would want to set up your application as LSUIElement, and then use TransformProcessType to enable the Dock icon. The app will need to be relaunched for the change to take effect. See the Google Quick Search Box project for an example.