Make an NSToolbar's fullScreenAccessoryView visible at launch

438 views Asked by At

I am trying to make an application with a toolbar controller which view is shown, and for each view shown I want to include a second 'row' for the toolbar, and I found out that to do this you had to do [toolbar setFullScreenAccessoryView:view]. However, the view does not appear until the user toggles fullscreen mode and the accessory view remains after toggling the window back to windowed mode. I would like it to look like the following examples from Mail.app, Preview.app, Dictionary.app: enter image description here enter image description here enter image description here

1

There are 1 answers

6
Daij-Djan On BEST ANSWER

just place a custom view underneath the NSToolbarView .. so at the top of the window. dont misuse the fullscreenAccessory view. it if meant for something else.

see How to create a toolbar with "Search" Finder style, rounded buttons working like radio

(it could be any other view too btw :D)