有没有办法在我的Cocoa应用程序中删除Mac OS Yosemite透明度?未在NSWindow
或NSToolbar
找到任何设置。
答案 0 :(得分:3)
var welcome = "hello there"
let range = welcome.index(welcome.endIndex, offsetBy: -6)..<welcome.endIndex
welcome.removeSubrange(range)
print(welcome) // prints "hello"
welcome = "hello there"
let otherRange = welcome.index(welcome.startIndex, offsetBy: 5)..<welcome.endIndex
welcome.removeSubrange(otherRange)
print(welcome) // prints "hello"
采用NSWindow
,这意味着它具有NSAppearanceCustomization
属性。我认为将其设置为appearance
会关闭窗口的活力。