How would one display an image in coacoa using NSImageView.
In Java i would do:
JLabel pict;
pict.setIcon( new Icon( "filename" ) );
//The file exists in the directory of the class files.
something to that effect. how would i do that in coacoa.
So far I've set up:
- (void)awakeFromNib
{
NSImage *image = [NSImage imageNamed:[picts objectAtIndex: 0]];
[ pict setImage:image ];
}
where picts is an array of file names, and pict is the NSImageView. I know I'm doing something wrong cause the program attempts to launch but then quits before displaying anything.
I'm really new to this so don't be afraid to dumb this down.
Also, how does one post to the omnigroup macosx-dev maillist?
TIA