1

In short: is there any way to use cursor rects on non-key window, or should I use tracking areas instead?

I want to manually resize window, and making user to first click on it to make key, and only after them show resizing cursors is a bit annoying.

4

1 回答 1

2

Cursor rects 非常陈旧且不灵活,所以你真的不想使用它们——它们现在已经被弃用了,除非它们在 AppKit 中如此深入。

新的对象 APINSTrackingArea是要走的路。

于 2014-02-05T12:08:38.803 回答