sample code: 110_NSImageView

    
    NSString *inFilePath = @"/Users/powenko/Desktop/niceImages/123.jpg";
    NSImage *testImage = [[[NSImage alloc] initWithContentsOfFile:inFilePath] autorelease];
    
    
    //imageView is your outlet
    [self.m_imageview setImage:testImage];

By admin-powenko

Dr. Powen Ko is a teacher and CEO on LoopTek LLC, and like to teaching. if you need to class, please let PowenKo know, he will love to service and sharing. LoopTek web site is www.looptek.com

Leave a Reply