Load a JPEG file and set the resulting one NSImage
in a property of your document using the property ( self.image = [[[NSImage alloc] initWithContentsOfFile:…] autorelease]
) syntax . Meanwhile, in your nib, bind the image binding value
to a document property image
.
source
to share