I have try to set icon for my App in the xCode. In the info.plist I wrote:
<key>CFBundleIconFile</key>
<string>icon</string>
icon is icon.icns file 57X57 in the resources.
But finally bundle does not contain an icon. When I press about my app Item in the menu bar an about window appears with my icon.
What's wrong?
Please help.
Thanx
Try <string>icon.icns</string>
EDIT: An icns file is not a simple png file; see here . You can use Icon Composer.app
included in Apple's Xcode Developer Tools ( /Developer/Utilities
). to convert your icon file to icns format; just drag the file into the window area.
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.