美文网首页
NSEvent trackingArea 属性对mouseMov

NSEvent trackingArea 属性对mouseMov

作者: 皮蛋豆腐酱油 | 来源:发表于2020-03-16 18:30 被阅读0次

在mouseMoved事件里写theEvent.trackingArea运行时会崩

/* these messages are valid for enter and exit events */
@property (readonly) NSInteger trackingNumber;
@property (nullable, readonly) void userData NS_RETURNS_INNER_POINTER;
/
-trackingArea returns the NSTrackingArea that generated this event. It is possible for there to be no trackingArea associated with the event in some cases where the event corresponds to a trackingRect installed with -[NSView addTrackingRect:owner:userData:assumeInside:], in which case nil is returned. */
@property (nullable, readonly, strong) NSTrackingArea *trackingArea API_AVAILABLE(macos(10.5));

相关文章

  • NSEvent trackingArea 属性对mouseMov

    在mouseMoved事件里写theEvent.trackingArea运行时会崩 /* these messag...

  • macOS-鼠标

    鼠标跟踪 如果直接重写-(void)mouseMoved:(NSEvent *)event-(void)mouse...

  • macOS 鼠标事件

    NSResponder NSEvent https://www.jianshu.com/p/5c8d2a8bfad...

  • throttle与debounce函数

    throttle()是函数调用的频度控制器,控制连续执行时的时间间隔。 主要应用场景: 鼠标移动,mousemov...

  • KeyPaths in Swift

    KeyPaths 是啥? KeyPaths是对实例属性的一种引用,注意是对实例的属性的引用,而不是对属性值的引用,...

  • (28)day7-web前端(2)

    7.1 属性操作 1.属性点语法操作节点.属性:获取属性值节点.属性=新值:修改属性值 2.通过相应方法对属性进行...

  • 第七节JavaScript对象认识

    一.Object 对象 什么是对象 对象是由一对或者多对属性(包含属性名和属性值)组成的集合,属性名也叫做键名,属...

  • KVO使用及实现原理

    KVO使用及实现原理 KVO使用 对属性进行监听 对属性的属性进行监听 容器监听 触发(手动触发,kvc赋值) 添...

  • 第七节:JavaScript对象认识

    一.Object 对象 1. 什么是对象 对象是由一对或者多对属性(包含属性名和属性值)组成的集合,属性名也叫做键...

  • 面向对象进阶

    ### 动态添加属性: 1. `对象.属性名=xx`的形式。 2. 通过`setattr(对象,属性名,这个属性对...

网友评论

      本文标题:NSEvent trackingArea 属性对mouseMov

      本文链接:https://www.haomeiwen.com/subject/ettoehtx.html