开发者

Remove OS X Application Toolbar in XCode

My application is such that it does not require the tool-bar. It is very simple in nature and is controlled 100% by keyboard actions (one at a time, even). So while I know it's generally accepted that you should leave the toolbar in place, this time I feel that it actually hampers the UX of the program. So, I was wondering if it's possible to actually remove the tool-bar from my program?

It's easy to remove the traffic lights [ o o o ] from the bar, and there's no Title, but the space is still there, and the application simple looks 'off' with the extra space.

Any point开发者_如何学Pythoners are much appreciated, as I've looked around with the following queries:

  • How to remove the toolbar in an OSX application in XCode / Objective-C.
  • How do I remove the toolbar in an OSX application in XCode / Objective-C?

and a few others without much success.


You say toolbar, but I think you mean the window's title bar. This previous answer should work for you. The top answer is the way to do it, and the second answer is an argument against doing it.

Hide NSWindow Title Bar


If you want to keep title bar, but just want to customize it (including close, minimize and maximize buttons), you can use INAppStoreWindow component.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜