Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NSResponder mouseExited when hovering Window title

I have an NSWindow with an NSToolbar and a content view. I have set the tracking area to be the whole frame of the view.

I wish to have the mouseExited event fired when the cursor leaves the content view and enters the toolbar and/or the window title. What is the best way to achieve this? should I bound the tracking area to just below the toolbar?

The main reason I need this is because my view needs a special cursor. So I'm changing it in mouseEntered and wish to change it again when mouseExited

Thanks

like image 332
Chen Harel Avatar asked Mar 21 '26 20:03

Chen Harel


1 Answers

Why not add a cursor rectangle over the entire bounds of the view?

like image 122
Peter Hosey Avatar answered Mar 24 '26 18:03

Peter Hosey