美文网首页
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

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