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];
您不能从桌面将图像添加到NSImageView。
You have to add the image to your project, otherwise, you won't be able to use it.
You might wanna take a look at this documentation OSx Human Interface Guidelines .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.