您的位置:首页 > 移动开发 > IOS开发

ios developer tiny share-20160701

2016-07-07 15:09 381 查看
今天分享ios的事件处理机制,和android的Handler、Looper、MessageQueue类似,具体如下:

The NSResponder class defines the responder chain, an ordered list of objects that respond to user events. When the user clicks the mouse button or presses a key, an event is generated and passed up the responder chain in search of an object that can “respond”
to it. Any object that handles events must inherit from the NSResponder class. The core AppKit classes, NSApplication, NSWindow, and NSView, inherit from NSResponder.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  ios AppKit