Search code examples
objective-cmacoscocoansimagensimageview

Use Image from desktop as NSImage


How can I set a NSImageView's Image to a file from the desktop, not from inside my app. this is the code i've tried:

[applicationIcon setImage:myImage];

Solution

  • You can't add a image from desktop to NSImageView.