Title bar missing in NSOpenPanel?

依然范特西╮ 提交于 2019-12-30 09:29:14

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/36879212/title-bar-missing-in-nsopenpanel

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!