VZVirtualMachineView disable mouse capture

I would like to use VZVirtualMachineView to display grid of previews for multiple Virtual Machines. The problem is that VZVirtualMachineView always captures mouse events, and hired host cursor when it's on top of it. Is it possible to somehow disable these behaviors for VZVirtualMachineView? So that cursor of the host is not hiding and guest on this view is not receiving any mouse events?

Replies

VZVirtualMachineView uses the normal NSView's event delivery.

What you could do is intercept the events before they reach the VZVirtualMachineView. That way, those events will be invisible to your view. The documentation about Handling Mouse Events should help.

  • Would this also prevent the cursor from being hidden?

Add a Comment