Skip to main content
Filter by
Sorted by
Tagged with
0 votes
2 answers
61 views

In my macOS app (objC), the user can trigger tasks that can take some time, like importing files into a database. These tasks do not run on the main thread because they spawn a window (sheet) to show ...
jeanlain's user avatar
  • 475
0 votes
0 answers
124 views

Currently I am using an AVPlayerView in combination with an AVPlayer in my Cocoa App. The video plays fine but I want to disable that the AVPlayerView or AVPlayer responds to key presses that for ...
user10802841's user avatar
1 vote
1 answer
272 views

I created a simple test app where one field is an NSTextField and another is a <textarea> instead a WKWebView. I can click into the web view once, but if I go back to the NSTextField, I'm unable ...
Clifton Labrum's user avatar
1 vote
2 answers
741 views

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 ...
Codey's user avatar
  • 1,233
1 vote
0 answers
557 views

I'm trying to use the PanGestureHandler api from the react-native-gesture-handler package and especially the move with velocity. Everything is working well with the panGesture, the properties ...
oktapodia's user avatar
  • 1,778
0 votes
1 answer
432 views

I have a custom view that has multiple components that can receive the focus, similar to NSDatePicker in the textFieldAndStepper style. If it gets the focus the first component is focused. You can ...
mistercake's user avatar
1 vote
0 answers
113 views

I am trying to send an action from a menu item to a child view controller of a NSSplitViewController. As I understand I am supposed to override supplementalTargetForAction:sender: on the ...
de.'s user avatar
  • 8,787
0 votes
2 answers
314 views

I've got a window with a single text editing field next to a scrolling view. The document view of the scrolling view contains multiple sub-views, and some of those sub-views contain text editing ...
jsbox's user avatar
  • 328
3 votes
1 answer
834 views

Overall goal: Use a custom storyboard segue on macOS The issue at hand is the responder chain. According to Apple: In addition, in macOS 10.10 and later, a view controller participates in the ...
Zelko's user avatar
  • 3,991
4 votes
1 answer
276 views

I am trying to implement smartMagnify: in an NSView, but it is never called. I have rotate:, magnify:, etc., and they are all being called successfully - what do I need to do to receive this message? ...
Grimxn's user avatar
  • 22.6k
8 votes
1 answer
2k views

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 ...
Eitot's user avatar
  • 186
3 votes
0 answers
183 views

My NSDocument subclass (MyDocument) is quite large and I was thinking about making a MyDocumentResponder (subclass of NSResponder) to handle document responder events in order to clean up the code. ...
Trygve's user avatar
  • 1,435
3 votes
1 answer
201 views

I am implementing a NSControlTextEditingDelegate protocol and I don't know which class/protocol i should match with e.g. commandSelector. #selector(WhichClass.moveUp(_:)) so that the equality will ...
Marek H's user avatar
  • 5,652
0 votes
0 answers
53 views

In my NSViewController I placed a print(_:) method, but it's not being called when I hit print. Instead, the print is being captured by the current NSTextField that I'm in. How do I force the print ...
Gargoyle's user avatar
  • 10.5k
1 vote
1 answer
175 views

I have a requirement in a Mac OS X app for the user to be able to tab between the follow item in a single window, NSSearchField within the toolbar NSBrowser NSCollectionView NSCollectionView (second ...
Nathan Day's user avatar
  • 6,057
1 vote
1 answer
98 views

I am having a hard time understanding the responder chain in OS X. I have an NSTextView subclass, and I want it to respond to a command-key and do something. I've created a very simple demonstration ...
The Cappy's user avatar
  • 623
1 vote
1 answer
194 views

I'm working on a Cocoa app. I would like to catch all keyboard events that are not being handled by any responder, and report them to Google Analytics. For this purpose, I would like to set a custom ...
Yoav's user avatar
  • 6,138
5 votes
2 answers
3k views

I have got a problem using the responder chain in swift. When I setup a buttons target using a nil target like: someButton.addTarget(nil, action:"addButtonTapped:", forControlEvents: .TouchUpInside) ...
Benedikt Iltisberger's user avatar
0 votes
1 answer
65 views

I want an NSTextField that prevents empty strings so I subclassed the NSTextField and implemented this method -(void) textDidEndEditing:(NSNotification *)aNotification { if([[self stringValue] ...
stupot's user avatar
  • 13
-2 votes
1 answer
1k views

AFHTTPRequestOperationManager* manager = [AFHTTPRequestOperationManager manager]; NSLog(@"%@",[urlOfVm class]); NSMutableString *url = [NSMutableString stringWithString:urlOfVm]; [url ...
张一鸣's user avatar
3 votes
1 answer
1k views

The user specific keyBindings .dict file is found in: ~/Library/KeyBindings/ How can you (as the developer) tell AppKit to look in another directory (app specific) for another bindings file for your ...
Sam's user avatar
  • 2,885
0 votes
1 answer
203 views

In my app there's the strange issue that a custom NSView receives forwarded mouseDragged events when the window is dragged around the screen, usually by its toolbar. From the stack trace it seems ...
cacau's user avatar
  • 3,656
1 vote
0 answers
199 views

My NSViewController implements magnifyWithEvent:. The window is a NSPanel with NSNonactivatingPanelMask as a styleMask flag. Because of that, opening the window and using it will not activate the ...
IluTov's user avatar
  • 6,848
1 vote
0 answers
737 views

I have TabViewController, and i have Make custom NSView for it TabView which i have inherits in XIB. Now i have successfully implemented all mouse handle events in TabView and worked. I want the ...
Solid Soft's user avatar
  • 1,932
1 vote
2 answers
641 views

I have a master-detail kind of application OS X 10.9 only: An NSTableView on the left side of the window, the details as NSTextFields on the right side. I have not set the tab order specifically, out ...
MartinW's user avatar
  • 5,041