Which delegate method should I use to respond to clicks on an NSTextField?

后端 未结 2 1130
不思量自难忘°
不思量自难忘° 2020-12-03 16:09

I am trying to respond to a click within a textfield. When the click occurs, I am going to open a panel. My initial thought was to use

2条回答
  •  离开以前
    2020-12-03 16:57

    Since NSTextField inherits from the NSControl class, it also inherits the -(void)mouseDown:(NSEvent*) theEvent method.

提交回复
热议问题