Frage

I'd like to catch event of image changing in my NSImageView, how can I do it?

War es hilfreich?

Lösung

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).

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top