0

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

Python Spoils You
  • 374
  • 1
  • 2
  • 12
  • possible duplicate of [How to create a toolbar with "Search" Finder style, rounded buttons working like radio](http://stackoverflow.com/questions/7117488/how-to-create-a-toolbar-with-search-finder-style-rounded-buttons-working-like) – Daij-Djan Nov 30 '13 at 16:00

1 Answers1

1

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)

Community
  • 1
  • 1
Daij-Djan
  • 49,552
  • 17
  • 113
  • 135
  • So I know for the future, what is the proper way to use fullScreenAccessory view? – Python Spoils You Nov 30 '13 at 16:01
  • 1
    when you have a view.. in a ... e.g. floating palette.. and in fullscreen you don't want the palette but you need one view in it you mark THAT as a fullScreenAccessory. The toolbar will then take that view as 2nd row when the palette is hidden – Daij-Djan Nov 30 '13 at 16:04
  • 1
    just an example... it could also be that you have a sidebar that in fullscreen turns into a bar – Daij-Djan Nov 30 '13 at 16:06
  • 1
    or a view that is hidden in a menu but in fullscreen it makes sense to always show it – Daij-Djan Nov 30 '13 at 16:07
  • The answer to that question provides source code that is not compatible with ARC – Python Spoils You Nov 30 '13 at 16:47
  • 1
    @PythonSpoilsYou yes? and? :) the point is that it is ANY custom view. Arc or not doesn't matter at all. but maybe someone finds an arcified view ;) – Daij-Djan Nov 30 '13 at 16:48