Yakov
Yakov

Reputation: 318

How can I set icon for Mac OS X Bundle?

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

Upvotes: 3

Views: 2879

Answers (1)

Ned Deily
Ned Deily

Reputation: 85025

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.

Upvotes: 5

Related Questions