문제

I want to take an image from my project and add it to the "About MyApp" window.

This seemed as simple as adding the image to the credits.rtf file; once I dragged and dropped the image from the project to the credits.rtf file, it inserted the image into the file and I put it where I wanted it, but as soon as I ran the application, there was just a space where I had put the image.

Is there any way to show an image in the About MyApp menu (other than the application icon) without creating a custom NSView and changing the target of the About NSMenuItem?

도움이 되었습니까?

해결책

I created a new Xcode project, selected it's 'Credits.rtf' file and pasted in an image, built and ran it and the image auto-magicly showed up in my "About…" dialog.

Note: it changed the file extension to '.rtfd' and I got the following dialog (sheet):

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