3

How do I disable/enable the titlebar close, minimize and zoom (red, yellow and green) buttons in an NSViewController - preferably from Objective-C/Swift.

I have searched the Storyboard properties but not found anything.

2 Answers2

4

Yes. you can. Using appearance section windows controller you can do the changes.

enter image description here

Im Batman
  • 1,842
  • 1
  • 31
  • 48
0

The close, minimize and zoom buttons are owned by the window. They are automatically enabled and disabled. Set styleMask of the window to enable or disable the buttons. You can enable and disable the buttons in the XIB.

Willeke
  • 14,578
  • 4
  • 19
  • 47