A NSView category for determine mouse entered or exited in macOS Apps.
NSView and subclass of NSView can use it.
It's easy to use.
Sample Code:
[button setMouseExited:^
// Your code...
}];
[button setMouseEntered:^{
// Your code...
}];
这是一个macOS Apps用于检测鼠标进出事件的NSView category。
NSView 和 NSView的子类都可以使用。
使用起来非常简单。
代码示例:
[button setMouseExited:^
// Your code...
}];
[button setMouseEntered:^{
// Your code...
}];