NSImageView setup image path

October 20, 2012   ·   0 Comments

Screen Shot 2012-10-20 at 10.47.18 AM

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];

shareShare on FacebookShare on Google+Share on LinkedInEmail this to someonePrint this pageBuffer this pageDigg thisFlattr the authorShare on RedditPin on PinterestShare on StumbleUponShare on TumblrTweet about this on Twitter

By


Readers Comments (0)


You must be logged in to post a comment.

PowenKo’s Online Store

powenko_arduinoBook
MAC139

MAC

Amazon

adsbygoogle

Recent Posts

Categories

Amazon