nsevent
Modify NSEvent to send a different key than the one that was pressed
I\'m trying to create an OS X keyboard hook for assistive technology purposes (i.e. don\'t worry, not a keylogger).[详细]
2023-02-28 21:36 分类:问答Mouse Down events in Objective-C
I know this question has been asked a lot before, but nothing will work for me. The following code will not do anything at all.[详细]
2023-02-21 19:55 分类:问答keydown in objective-C
[UPDATED AFTER FIRST AWNSER] I have tried to find a way to use and implement the keyDown option in Objective C. But when I try it, it always fails...[详细]
2023-02-20 22:58 分类:问答Using DDHotKey wrapper for cocoa/carbon instantiate NSWindow
With the help of Dave DeLong and others on stackoverflow I\'ve given my tutorial app a cool hotkey effect but I can\'t figure out how to make it instantiate the window.[详细]
2023-02-11 12:47 分类:问答NSEvent - NSLeftMouseDown
I\'m trying to trigger basic functions using NSEvent and mouse clicks. F开发者_C百科or example close the window when pressing left mouse button. What else do I need in this method?[详细]
2023-02-09 05:43 分类:问答NSMenu Pressed Mouse Button in 10.5
I’m updating (downdating?) an application I’ve written for 10.6+ to work in 10.5+. I’m struggling with capturing the currently pressed mouse button in the -(void)menuWillOpen:(NSMenu *); selector.[详细]
2023-01-31 02:10 分类:问答AppKit framework and NSEvent.h in Cocoa Touch
I want to write a method that needs NSEvent defined, so I need NSEvent.h. The SDK I am using (3.1.3) doesn\'t seem to have NSEvent.h within its frameworks.I found that it is in AppKit.framework, which[详细]
2023-01-23 13:10 分类:问答Send a MouseEvent to a NSView (WebView) from code
i am try开发者_JAVA技巧ing to send mouseevent (MouseClick or RightMouseClick) to a NSView... in my case a WebView, that contains a loaded Website. I want to script some clicks on links etc. How is it[详细]
2023-01-18 19:15 分类:问答Capture key press events while NSMenu is open
I\'m interested in capturing key presses while a NSMenu is open. For example, if the menu is open and the user presses \"e\", or \"1\" on the keyboa开发者_StackOverflow中文版rd, send a particular mess[详细]
2023-01-17 18:03 分类:问答Keeping window of another application active while still receiving mouse events from another app's window?
Is there a way to have my app\'s window receive keyboard and/or mouse events (i.e. user clicking on window\'s buttons) while still retaining focus to another, unrelated app?[详细]
2022-12-23 18:53 分类:问答