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?
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
Post a Comment