I found the file info.plist and i added <key>NSPrincipalClass</key> like that :
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "
http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSPrincipalClass</key>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>CodeBlocks</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>CodeBlocks</string>
<key>CFBundleIconFile</key>
<string>app.icns</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleVersion</key>
<string>CodeBlocks version 13.12</string>
<key>CFBundleShortVersionString</key>
<string>CodeBlocks version 13.12</string>
<key>LSRequiresCarbon</key>
<true/>
<key>CFBundleGetInfoString</key>
<string>CodeBlocks version 13.12, (c) 2004-2013 Code::Blocks</string>
<key>CFBundleLongVersionString</key>
<string>CodeBlocks version 13.12 SVN revision 8629, (c) 2004-2013 Code::Blocks</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright 2004-2013, The Code::Blocks Team</string>
<key>CFBundleIdentifier</key>
<string>org.codeblocks.app</string>
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>cbp</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>cbp.icns</string>
<key>CFBundleTypeName</key>
<string>CodeBlocks Project File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>workspace</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>csd.icns</string>
<key>CFBundleTypeName</key>
<string>CodeBlocks Workspace File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSIsAppleDefaultForType</key>
<true/>
<key>LSTypeIsPackage</key>
<false/>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>h</string>
<string>pch</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>h.icns</string>
<key>CFBundleTypeName</key>
<string>C Header Source File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>hp</string>
<string>hpp</string>
<string>hxx</string>
<string>h++</string>
<string>pch++</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>h.icns</string>
<key>CFBundleTypeName</key>
<string>C++ Header Source File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>c</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>c.icns</string>
<key>CFBundleTypeName</key>
<string>C Source File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>cc</string>
<string>cp</string>
<string>cpp</string>
<string>cxx</string>
<string>c++</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>cpp.icns</string>
<key>CFBundleTypeName</key>
<string>C++ Source File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>d</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>d.icns</string>
<key>CFBundleTypeName</key>
<string>D Source File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>s</string>
<string>asm</string>
</array>
<key>CFBundleTypeName</key>
<string>Assembly Source File</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>*</string>
</array>
<key>CFBundleTypeName</key>
<string>Plain Text File</string>
<key>CFBundleTypeOSTypes</key>
<array>
<string>****</string>
</array>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
</array>
</dict>
</plist>
But when i zip the application and dezip it, i have the message : "This file is damaged or incomplete".
It's not really a problem to have icons that are not sharp but the text is really important since i really struggle to read all the code if i have hundreds of lines in it.
I truly appreciate your help. Thanks a lot.