Created
March 5, 2018 19:38
-
-
Save mmuszynski/1d5683a0e2d081a6497d397dc6100f3a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var waveVisualizerTrackingArea: NSTrackingArea! | |
var fftVisuzalizerTrackingArea: NSTrackingArea! | |
func setupTracking() { | |
waveVisualizerTrackingArea = NSTrackingArea(rect: waveVisualizerBox.frame, options: [.activeInActiveApp, .mouseMoved], owner: self, userInfo: nil) | |
fftVisuzalizerTrackingArea = NSTrackingArea(rect: fftVisualizerBox.frame, options: [.activeInActiveApp, .mouseMoved], owner: self, userInfo: nil) | |
self.view.addTrackingArea(waveVisualizerTrackingArea) | |
self.view.addTrackingArea(fftVisuzalizerTrackingArea) | |
} | |
override func mouseMoved(with event: NSEvent) { | |
print(event.trackingArea) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment