开发者

mouse over on image object which was drawn on view

开发者 https://www.devze.com 2022-12-25 04:19 出处:网络
I have dr开发者_如何转开发awn an object on NSView subclass. How can the object know that mouse over is done

I have dr开发者_如何转开发awn an object on NSView subclass. How can the object know that mouse over is done

on it when mouse passes over it.


If the object is neither NSView nor CALayer (that is, you draw it in your view's drawRect:), the recommended way is to use NSTrackingArea class. You will get the notifications you need sent to the NSView.

0

精彩评论

暂无评论...
验证码 换一张
取 消