I am trying to add a “second line” after my NSToolbar in my application, which remains part of the title bar. For example, Mail has a thin gray dividing line under NSToolbar with some additional elements below. In particular, when a window is placed in full-screen mode, this second “line” remains attached to the title bar when it slides down in the system menu bar. Xcode has a similar story.




I tried setting my NSWindow to texturing and placing second-line controls directly in the window's content window. Although this basically looks right in windowed mode, these controls, of course, will not appear on the toolbar when they slide in full screen mode. So, how can I achieve the same behavior as Mail and Xcode? I looked through a lot of toolbar customization code, but not one of them covers this particular case.


source share