Add buttons to Mac window Title Bars, system-wide

后端 未结 4 1928
难免孤独
难免孤独 2021-02-05 12:44

I want to be able to add a button to the title bar of all windows that open on a Mac.

The button will go on the right hand side, opposite the X -

4条回答
  •  悲哀的现实
    2021-02-05 12:51

    This answer addresses the latest Xcode Version 9.3

    • Go to a storyboard.
    • Drag and drop a toolbar in the storyboard to a Window.

    • The toolbar will be visible below a title.

    • Locate the Window on the storyboard

    • Check "Hide Title" in properties of the Window.

    • The toolbar is a part of the title now.

提交回复
热议问题