[MAC OS] NSButton tag 获取

 

@IBAction func switchContentLayout(_ sender: Any) {
        let button : NSButton = sender as! NSButton;
}

 

posted @ 2017-04-13 17:06  demoblog  阅读(450)  评论(0编辑  收藏  举报