Override this method in a subclass to allow instances to respond to click-through. This allows the user to click on a view in an inactive window, activating the view with one click, instead of clicking first to make the window active and then clicking the view. Most view objects refuse a click-through attempt, so the event simply activates the window. Many control objects, however, such as instances of NSButton and NSSlider, do accept them, so the user can immediately manipulate the control without having to release the mouse button.
本文介绍了一种允许视图响应穿透点击的技术,使用户能够在非活动窗口中通过一次点击激活并操作视图或控件,无需先激活窗口再点击目标。此特性增强了用户体验,尤其对于NSButton和NSSlider等控件更为实用。
166

被折叠的 条评论
为什么被折叠?



