Handling Events in Windows
2011-08-06 19:54
363 查看
Handling Events in Windows
As described in NSResponderClass Reference, most events coming into an application make their way to a window in a
sendEvent:message.
A key event is directed at the key window, while a mouse event is directed at whatever window lies under the pointer. If an event affects the window directly—resizing or moving it, for example—it performs the appropriate operation itself and sends messages
to its delegate informing it of its intentions, thus allowing your application to intercede. The window sends other events up its responder chain from the appropriate starting point: the first responder for a key event, the view under the pointer for a mouse
event. These events are then typically handled by some view object in the window. See Cocoa
Event-Handling Guide for more information on how to intercept and handle events.
相关文章推荐
- Centralised Exception Handling in C# Windows Application
- Events and event handling in C#
- Event Handling Guide for iOS--(一)--About Events in iOS(翻译)
- New Vectored Exception Handling in Windows XP
- Good idea for handling the cursor's state in Windows Form
- Handling Events in JavaServer Faces
- Best Practices for Handling Shutdown in Windows Vista
- Order of Events in Windows Forms——Windows Foms 事件加载顺序
- Event Handling Guide for iOS--(一)--About Events in iOS
- Part 7Handling events in AngularJS
- Core OS Events in Windows 7, Part 1
- Pardon the Interruption -- Interrupt Handling Changes in Windows
- Core Instrumentation Events in Windows 7, Part 2
- Handling events in an MVVM WPF application
- Handling HTML Element Events in MFC applications - A simple alternative approach
- Events and event handling in C#
- Add "DOS Here" to right button menu in Windows
- How to embed Windows Media Player in HTML document
- DataGridView in Windows Forms – Tips, Tricks and Frequently Asked Questions(FAQ)
- WSUS in Windows Server 2012(update)