3

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

Chen Harel
  • 9,684
  • 5
  • 44
  • 58

1 Answers1

1

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

Peter Hosey
  • 95,783
  • 15
  • 211
  • 370
  • I've tried that but it didn't seem to work as I want. For some reason the cursor doesn't change back to the regular once I exit the view – Chen Harel Jul 04 '11 at 11:48