NSView alphaValueが効かない時に
NSView.alphaValue
を設定するとViewが全く見えなくなるバグに遭遇したので、解決方の備忘録。
alphaValue
は内部的にCALayer
を使っているようで、場合によってはCALayer
なしでもうまく行くが、場合によってはうまくいかないようなので
view.wantsLayer = true
で解決した。
Author And Source
この問題について(NSView alphaValueが効かない時に), 我々は、より多くの情報をここで見つけました https://qiita.com/ObuchiYuki/items/0f3579a8879f330caf98著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .