I have a document window with an empty NSImageView, and I have an outlet connect to this called *imageView. I also have the property: NSImage *image.
The NSImageView fills almost the entire window.
In windowControllerDidLoadNib: I call the following method:
-(void)addImageToImageView {
imageView = [[NSImageView alloc] init];
imageView.image = image;
}
There is definitely an image assigned to imageView.image but it does not display. I thought maybe it's because I'm adding the image to the view before the window is loaded but shouldn't all the code in windowControllerDidLoadNib run after the window has loaded?
Any help would be most welcome!