User forums > Help

CodeBlocks on retina display

<< < (3/3)

dmoore:
I think the App is just a zip file, try extracting all of the files and see if you can find the Info.plist file. Then look for NSPrincipalClass key in that file (you should be able to open it in a text editor - it's just xml). If the key missing, add it and then rezip everything and see if it makes a difference. There maybe some permission issues that I'm not aware of that you will have to deal with to make the zip runnable. I don't have a mac so I'm about at the limits of what I can do to help.

You could also try replacing the image files in the extracted application, but I suspect you will not be able to improve things here because it doesn't look like wxWidgets support for retina resources is actually ready.

user4385re:
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.

thomas:

--- Quote from: dmoore on February 11, 2014, 05:19:33 pm ---@Morten: Do you know if anyone ever made an SVG icon set? That would make it a lot easier to get a consistent icon set that works across multiple resolutions.

--- End quote ---
There is a big number of SVGs outside the normal source tree (so it isn't checked out by everyone who doesn't need them), basically all icons that were specifically made for Code::Blocks and not borrowed from tango or what it's called.

That is... hopefully they're in the current repo, because I deleted the originals two or three weeks ago when replacing harddisks...

dmoore:

--- Quote from: user4385re on February 14, 2014, 12:52:44 am ---I found the file info.plist and i added <key>NSPrincipalClass</key> like that :
...
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.

--- End quote ---

Probably some sort of md5 sum check in the name of security.
 
Perhaps Morten would be so kind as to make the adjustment to the info.plist file and create a new mac bundle, or otherwise provide instruction on how to build it so you can do it yourself.

user4385re:
It would be awesome !

Navigation

[0] Message Index

[*] Previous page

Go to full version