nsresponder Questions

2

I have an NSTextField in my window and 4 menu items with key equivalents ←↑→↓. When the text field is selected and I press an arrow key, I would expect the cursor to move in the text field but ins...
Syllabogram asked 16/5, 2020 at 16:11

4

Solved

I'm having hard time understanding and finding info about how to make NSViewController accept key and mouse events. I read somewhere that in order to register these events in NSViewController it sh...
Cowrie asked 19/11, 2013 at 0:50

6

Solved

I'm doing some crazy multiple documents inside a single window stuff with the document-based architecture and I'm 95% done. I have this two-tier document architecture, where a parent document open...
Bosworth asked 22/11, 2010 at 1:0

2

Solved

I have a custom view that accepts key input, its inside a NSScrollView. I have set the acceptsFirstResponder to yes and it is accepting the keyDown successfully. But every time I hit a key, I hear ...
Colonel asked 17/8, 2012 at 17:51

1

I added a childWindow of a custom subclass of NSWindow to a parentWindow (also a custom subclass of NSWindow). The childWindow has the NSBorderlessWindowMask and canBecomeKeyWindow: is overridden t...
Adaptive asked 19/11, 2012 at 11:22

7

Solved

NSResponder seems to have no mouse double click event. Is there an easy way to catch a double click?
Pigheaded asked 2/2, 2010 at 0:15

2

Solved

I subclass an NSView and start full screen mode when the application finished launching. The view is available as the property fooView in the application delegate. // AppDelegate.m - (void)applica...

1

Solved

I have an NSToolbarItem with an NSButton as its view and an NSMenuItem in the main menu. Both have the same action, which is sent to the first responder, not to a particular target. That method is ...
Acosmism asked 26/2, 2017 at 15:49

5

I am handling touches for a couple of my UI components in my view controller (custom subclass of UIViewController). It has methods touchesBegan:withEvent:, touchesMoved:withEvent:, and touchesEnded...
Ruthannruthanne asked 16/9, 2011 at 1:32

3

I'm trying to find a solution that allows me to get keydown events in a view controller. I do not believe a view controller is part of the responder chain by default. I would appreciate a sample ...
Genous asked 17/10, 2013 at 21:28

1

I’m trying to replicate the behaviour of the search field in iTunes, for looking up stock symbols and names. Specifically, as you start typing in the search field a popover appears with the filtere...
Cinderella asked 22/12, 2013 at 14:49

0

Is it possible to have validateMenuItem work with NSViewControllers? The docs say NSViewController is a subclass of NSResponder so I would think it would participate in the responder chain, but I h...
Maestas asked 4/6, 2014 at 2:18

1

I'm using a custom subclass of NSView and receiving keyboard events through the keyDown/keyUp methods, everything works fine except when the "Cmd ⌘" key is pressed, keyDown events are fired as norm...
Selfrenunciation asked 17/5, 2013 at 7:49

2

Solved

I have a Cocoa app that has an NSWindowController controlling an NSWindow with an NSComboBox in it. Nothing special, and it worked fine until upgrading to OS X 10.7.2. Now I get the following excep...
Carthusian asked 24/10, 2011 at 19:22

2

Solved

I have a menu item inside the main app menu and I’d like to route its action to a view controller (NSViewController). The interface hierarchy looks like this: There’s a main app window controller b...
Imidazole asked 12/7, 2012 at 13:33

1

Solved

Is it possible to give an NSView inside an NSPanel first responder status without giving the NSPanel key window status (making the main application window resign key)? Thanks.
Penetrance asked 6/2, 2011 at 21:4
1

© 2022 - 2024 — McMap. All rights reserved.