osx - Use combined titlebar + toolbar while preserving title visibility -


the system preferences app feature combined title bar , toolbar vertically centered buttons , title. trying mimic in app. have been able combine title bar , toolbar using interface builder (on nswindow check title bar , unified title , toolbar), not center content vertically. discovered via this question can set window's titlevisibility nswindowtitlehidden vertically center stoplight buttons. unfortunately of course hides title. how can 1 vertically center content in unified titlebar/toolbar , show window's title system preferences - either in ib or programmatically?

enter image description here

i ended setting titlevisibility nswindowtitlehidden , manually created nsview contains nstextfield mimics standard title appearance, providing window's addtitlebaraccessoryviewcontroller method. still find better solution use default title appearance, if possible.


Comments

Popular posts from this blog

node.js - How to mock a third-party api calls in the backend -

amazon web services - Installing MobileFirst 7.0 server on AWS -

Non Unique Username with ASP.Net Identity 2.0 -