How do you toggle the status item in the menubar on and off using a checkbox?

后端 未结 2 1268
隐瞒了意图╮
隐瞒了意图╮ 2021-01-07 15:23

I have already created a status item for the menu bar but I would like to add a checkbox to make it able to be toggled on and off.

So when the check box is checked t

2条回答
  •  自闭症患者
    2021-01-07 15:43

    Get an outlet to your button you want to toggle and then create an action method that your checkbox points to that toggles the hidden property of the original button based on the check box status.

提交回复
热议问题