Nickolay Olshevsky
Nickolay Olshevsky

Reputation: 14160

cursor rects on non-key window?

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.

Upvotes: 1

Views: 159

Answers (1)

Wil Shipley
Wil Shipley

Reputation: 9533

Cursor rects are super-old and inflexible, so you really don’t want to use them anyways—they’d have been deprecated by now except they’re so deep in AppKit.

The new object APIs on NSTrackingArea are the way to go.

Upvotes: 2

Related Questions