How do I attach a event to a NSTextField for when I click on it? Are there any examples out there?
NSClickGestureRecognizer *click = [[NSClickGestureRecognizer alloc] initWithTarget:self action:@selector(myTextFieldClicked:)]; [self.myTextField addGestureRecognizer:click];
2.1m questions
2.1m answers
60 comments
57.0k users