usattc / NSViewMouseHandle

A NSView category for determine mouse entered or exited in macOS Apps.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

English:

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...
 }];

About

A NSView category for determine mouse entered or exited in macOS Apps.


Languages

Language:Objective-C 91.8%Language:Makefile 8.2%