Calling `print` inside NSView opens print dialog

后端 未结 3 411
一向
一向 2020-12-09 09:07

This is bizarre. I have a simple storyboard placeholder with GridView for the class name attribute.

class GridView: NSView {

    required init?         


        
3条回答
  •  囚心锁ツ
    2020-12-09 09:29

    The reason it's calling the print dialog is that Swift 2 apparently has two methods with the same signature.

    enter image description here

提交回复
热议问题