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

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -