摘要: 创建NSTrackingArea对象 一个NSTrackingArea对象定义一个鼠标的运动敏感区域,当鼠标进入(Enter)/移动(moves)/离开(exits)这个敏感区域,Application Kit 发送 mouse-tracking, mouse-moved, and cursor-u 阅读全文
posted @ 2016-03-10 17:58 无枝大树 阅读(2772) 评论(0) 推荐(0) 编辑
摘要: Apple的《Handling Mouse Events》文档中有几个列子记录一下 Listing 4-2 Simple handling of mouse click—sending an action message - (void)mouseDown:(NSEvent *)theEvent { 阅读全文
posted @ 2016-03-10 17:50 无枝大树 阅读(1760) 评论(0) 推荐(0) 编辑