I have a NSImageView
which operates as an image well. It is also bound via. a value transformer using the value path property to display saved images for each record (the value transformer just appends the file path - I just store the image's file name in the database).
When I drag a image onto the image well when there is no value path bound (i.e. user haven't set the image yet) everything works well - scaling and setting the image in the database and then displaying the image. If there is already an image in the database displayed via. bindings dragging a new image onto the image well causes NSImageView.image to return nil. The image view itself is not nil.
I am capturing dragged images on the image well by setting a target and an action on the image well.
imageWell.target = self
imageWell.action = "imageWellAction:"
How can I access the dragged (new) image when another image is already bound to the NSImageView
?