Add onlick event to NSView programatically without subclassing

后端 未结 0 1001
时光取名叫无心
时光取名叫无心 2021-01-26 07:37

I create a bunch of NSviews programmatically. How can I set the function that is performend when the NSView is clicked?

For NSButton you can use button.addTarget

相关标签:
回答
  • 消灭零回复
提交回复
热议问题