NSImageView change event handler
-
04-03-2021 - |
Question
I'd like to catch event of image changing in my NSImageView, how can I do it?
Solution
You could try using KVO to monitor the image
key. If that doesn't work, you'll probably have to subclass NSImageView and insert your logic into setImage:
(and call super).
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow