문제

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];
도움이 되었습니까?

해결책

You can't add a image from desktop to 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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top