Questions tagged [nsresponder]

NSResponder is a class used in Mac Development. NSResponder is an abstract class that forms the basis of event and command processing in the Application Kit. The core classes—NSApplication, NSWindow, and NSView—inherit from NSResponder, as must any class that handles events. The responder model is built around three components: event messages, action messages, and the responder chain.

106 questions
2
votes
2 answers

secondary click nsresponder, right click doesn't work

I'm trying to get a NSOutlineView to accept secondary clicks, but can't seem to figure it out. I've tried changing secondary clicks from two fingers, to right corner and left corner on the trackpad, and still I don't get any respons in my outline…
2
votes
2 answers

nextKeyView is not working

I have developed an application, which has one tableview and 4 textfields. When I run the app, the control is not going orderwise by giving TAB. For that I set initialResponder as tableView, then connected tableview's nextKeyView to textfield,…
Preethi
  • 371
  • 2
  • 6
  • 20
2
votes
2 answers

Is there a KeyUp: method for flagsChanged:?

I have implemented the - (void)flagsChanged:(NSEvent *)theEvent method in my application. It works fine when I hold down the [alt] key. The method only sends when the key is pressed, but not when I let it go again. The - (void)keyUp:(NSEvent…
Silicone
  • 643
  • 6
  • 19
1
vote
1 answer

How to make an NSControl (e.g., NSTokenField) ignore mouse events

Specifically, I'd like to make an NSTokenField ignore mouse events because I'm using it in a NSTableCellView just to display data in a tokenized way without allowing any editing. Setting the token field's enabled = NO works, except that it greys out…
yuji
  • 16,695
  • 4
  • 63
  • 64
1
vote
1 answer

Is there such thing as NSResponder delegate?

In my Cocoa application on the application menu there is a menu item "Delete", which sends a delete: message to first responder. Now, I have the keyboard focus on a NSOutlineView, which is the first responder in this case. Short of subclassing…
Tony
  • 36,591
  • 10
  • 48
  • 83
1
vote
1 answer

WKWebView in Cocoa app can't get the cursor on click

I created a simple test app where one field is an NSTextField and another is a