Enable “low resolution” mode in Mac app bundle by default

时光总嘲笑我的痴心妄想 提交于 2019-12-25 01:26:40

问题


I'm publishing a Mac app which supports Retina (high resolution) mode, but I would like to disable this mode by default. In other words, I want the "Open in Low Resolution" option in the Get Info menu of the app bundle to be checked when the app bundle is unzipped.

If the user wishes to enable high resolution mode, they should be able to uncheck the option.

In my attempt to solve this problem, I found the options NSHighResolutionCapable and NSHighResolutionMagnifyAllowed from https://developer.apple.com/library/archive/documentation/GraphicsAnimation/Conceptual/HighResolutionOSX/Explained/Explained.html. By playing with these properties in my Info.plist file, I can only manage to make the the option unchecked by default (high resolution by default), or completely disable high resolution (option is grayed-out).

I'm testing in MacOS Mojave 10.14.3.

来源:https://stackoverflow.com/questions/55820459/enable-low-resolution-mode-in-mac-app-bundle-by-default

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