I have an NSOutlineView
that I'd ike to have mouseEntered:
and mouseExited:
updates during drag and drop. So I've tried to add an NSTrackingArea
to it. Within my outline view sub-class I have:
let target = self.frame
let options = [NSTrackingAreaOptions.enabledDuringMouseDrag]
let area = NSTrackingArea(rect: target, options: options, owner: self, userInfo: nil)
self.addTrackingArea(area)
But I seem to get the runtime exception:
[General] trackingArea options 0x400 do not include a type
It must be something really obvious but all the Google results don't seem to indicate what I'm doing wrong. If I do:
var trackingID = self.addTrackingRect(target, owner: self, userData: nil, assumeInside: false)
then the mouse methods do fire but obviously only when the mouse button is released.