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];
1.4m articles
1.4m replys
5 comments
57.0k users