0
新しいNSButton
を作成すると、そのスタイルをデフォルトのスタイルに設定するにはどうすればよいですか?Swift 3 macOS、デフォルトのボタンスタイルを設定
let (nomplusbut) = NSButton(frame: CGRect(x: 200, y: iy, width: 300, height: 40))
(nomplusbut).title = "Pfad öffnen..."
(nomplusbut).target = (self, action: #selector(buttonAction)) as AnyObject?
(nomplusbut).isBordered = true
(nomplusbut).setButtonType(NSMomentaryPushInButton)
arraybut.append(nomplusbut)
print(array[array.count - 1].stringValue)
self.view.addSubview(arraybut[arraybut.count - 1])
スタイルは、私が持っていると思います:
現在のスタイル:
優秀、ありがとうございました! – pikkuez