Hi all,
unfortunately Apple changed println() to print() which gives me some issues.
I have a NSImageView subclass where I catch which NSImageView is currently in use.
To see which NSImageView was entered or clicked I use a couple of mouse events (see at bottom of page) and print(theEvent) to see the result in the debugger.
Instead of printing a line in the debugger I´m faced with a printing dialog. Pretty strange.
When I´m using print() in an other context, where no graphical elements are involved things work as exspected.
print("\(__FILE__.lastPathComponent)[\(__LINE__)] \(__FUNCTION__)")
⇒ ViewController.swift[221] saveAndCloseSettings
Anyone got similar behavior? What am I doing wrong?
Greetings from Switzerland, Ronald Hofmann
---
//Catching mouse events in my subclass
override func mouseEntered(theEvent: NSEvent) {
print(theEvent)
}
override func mouseDown(theEvent: NSEvent) {
print(theEvent)
}
override func mouseDragged(theEvent: NSEvent) {
print(theEvent)
}
override func mouseMoved(theEvent: NSEvent) {
print(theEvent)
}