It seems that if I create an NSImageView
in code, there is no way to have the image automatically scale proportionally up if the NSImageView
becomes bigger than the image itself. (an odd omission)
On the other hand, if I create the NSImageView
in IB, it seems to somehow attach an NSImageCell
to the NSImageView
and the NSImageCell
has an option to scale proportionally up and down, which is what I want.
But in IB, I can't seem to understand the relationship between the NSImageView
and the NSImageCell
. I can't delete the NSImageCell
from the NSImageView
and I don't see the connection in bindings or anywhere else.
How do I get the functionality of the NSImageCell
when creating the NSImageView
in code?
Sorry if this is obvious, but I'm used to UIImageViews
and they're definitely different than NSImageView
.
Thank you.