9

Since OS X 10.11 it seems the title bar no longer appears even when using setTitle: does anyone know what happened and how to get the old behavior back?

NSGod
  • 22,699
  • 3
  • 58
  • 66
rick
  • 451
  • 3
  • 13

1 Answers1

9

From the AppKit Release Notes for OS X v10.11:

In 10.11, most NSOpenPanels have adopted a design that was formerly reserved only for applications which adopted iCloud Documents support and this panel design was only used if iCloud Drive was turned on in System Preferences. This note will refer to the design as the “iCloud Open Panel Design” although the design is no longer limited to applications with iCloud Documents support.

The iCloud Open Panel Design does not feature any title appearance, therefore it seems to be gone now. I don't think there is a way back.

If you would like to display some sort of message, description or title, you might use the message property instead.

jtbandes
  • 115,675
  • 35
  • 233
  • 266
mangerlahn
  • 4,746
  • 2
  • 26
  • 50
  • This is most helpful thank you. One question, it seems that the title bar can show at times and I haven't figured out yet why. Is there a way to check if the title bar is visible and then use the message property as a fallback? – rick Apr 28 '16 at 03:30
  • That is weird. I don't know why this happens or how to check for that. You will probably need to go with the message property – mangerlahn Apr 28 '16 at 20:29
  • When the title is shown, does the panel look like the old one? (Curious) – mangerlahn Apr 28 '16 at 20:30
  • If the title is shown it looks like the old one yes. On my end the title is not shown and I need the message property to display text. However, based on some reports that I'm getting it *can* be shown that's why I'm trying to think of a way to check if it's visible and then use the message property as a fallback... – rick Apr 29 '16 at 01:30
  • I assume those apps are simply built against a older SDK. – mangerlahn May 12 '16 at 04:23
  • In macOS 10.12, it appears setting the message property to a string value will cause the title bar to be displayed with that message. I'm not sure why the title property isn't deprecated, as it seems to serve no purpose now. – Ben Stahl Aug 08 '17 at 07:33
  • We should all file radars for that :) – mangerlahn Aug 08 '17 at 07:36