Page 1 of 2

Icon problem - please help?

Posted: Mon Jan 10, 2011 8:55 am
by peter.s
I am trying to output my standalone application - but when it is finished the app icon is not showing on the Mac version, but it is on the PC version.

I selected the icon files in the Standalone settings process before exporting. The PC icon is an ICO file and the MAc icon is an ICNS file. It worked fine on a previous test run last week, but today it's gone.

I have had several attempts at re-doing the app but to no avail. I also tried dropping a new icns into the app package, but that didn't work either - any suggestions?

I'm on a Mac - OS 10.6 using Rev Studio 4

Peter

Re: Icon problem - please help?

Posted: Mon Jan 10, 2011 12:03 pm
by Janschenkel
Maybe the Finder isn't refrezshing its database - what happens if you zip the .app and then unzip it?

Jan Schenkel.

Re: Icon problem - please help?

Posted: Mon Jan 10, 2011 12:09 pm
by Mark
Hi Peter,

Open the Mac OS X terminal. Type "touch" and a space after the prompt. Now drag your standalone into the terminal window. The path to the standalone will be added to the command line. Press enter and the icon should appear.

Best,

Mark

Re: Icon problem - please help?

Posted: Mon Jan 10, 2011 12:27 pm
by Klaus
Hi Peter,

in case you do not want to use the TERMINAL:
1. Right-Click on the Mac standalone and compress it (archive? no idea what the english name of that context menu item is)
2. Trash the original standalone file
3. Unzip (doubleclick) the ZIP file
4. See the icon appear in the decompressed standalone :)


Best

Klaus

Re: Icon problem - please help?

Posted: Mon Jan 10, 2011 3:39 pm
by peter.s
Thanks guys for your suggestions, but neither terminal or compressing the app worked.

It just shows the default Mac App icon - not the custom icon I chose as part of the build.

I can locate my custom icon in the Resources folder in the App package. So I know it is there... but it's just not doing its job.

Peter :(

Re: Icon problem - please help?

Posted: Mon Jan 10, 2011 3:53 pm
by Mark
Hi Peter,

How did you make the icns file? What is the size of the icns file inside the application package?

Mark

Re: Icon problem - please help?

Posted: Mon Jan 10, 2011 9:47 pm
by peter.s
Hi Mark,

The icns file was downloaded from iconarchive.com. My standalone has only a limited distribution (40 copies), so I figured a generic (yet custom) icon would suffice.

I expect my standalone would predominantly be used on PCs, so having the ico icon working is a bonus - better than nothing. But then the Autorun function on PCs would probably prevent anyone from seeing the icon anyway...

In the package the icns file is 49KB

Peter

Re: Icon problem - please help?

Posted: Mon Jan 10, 2011 10:18 pm
by Klaus
Hi Peter,

when you doubleclick the ICNS file, does it open in "Preview" and looks OK?


Best

Klaus

Re: Icon problem - please help?

Posted: Mon Jan 10, 2011 10:44 pm
by peter.s
Hey Klaus - Yes it does.

It is odd that the file seems perfectly fine (and I presume in the right place) but not just not being recognised.

I have tried outputting another couple of test standalones, but they all do (or don't do) the same thing.


Peter

Re: Icon problem - please help?

Posted: Tue Jan 11, 2011 11:56 am
by Klaus
Hi Peter,

hmmmm...?

Sounds like the name of the icon file in the PLIST files does not match the name of the actual icon file?
Sorry, no other idea so far...


Best

Klaus

Re: Icon problem - please help?

Posted: Tue Jan 11, 2011 3:20 pm
by kray
Klaus wrote:Sounds like the name of the icon file in the PLIST files does not match the name of the actual icon file?
Sorry, no other idea so far...
Can you post the contents of the Info.plist file inside the Mac bundle?

Re: Icon problem - please help?

Posted: Thu Jan 13, 2011 12:26 pm
by peter.s
Can you post the contents of the Info.plist file inside the Mac bundle?
I have finalised my project and delivered it to my client. Unfortunately the Mac version is without a custom icon, but I don't think it will be a big problem as the environment it is headed for is PC based.

I think I have the contents of the Info.plist. See below:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeExtensions</key>
<array>

</array>
<key>CFBundleTypeIconFile</key>
<string>StandaloneDoc.icns</string>
<key>CFBundleTypeName</key>
<string>Combining HEF&CBHI Files</string>
<key>CFBundleTypeOSTypes</key>
<array>

</array>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
</array>
<key>CFBundleExecutable</key>
<string>Combining HEF&CBHI</string>
<key>CFBundleIdentifier</key>
<string>com..mainstack</string>
<key>CFBundleGetInfoString</key>
<string>Main Stack Version 1.0.0.0</string>
<key>CFBundleIconFile</key>
<string>Standalone.icns</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleLongVersionString</key>
<string>Main Stack 1.0.0.0</string>
<key>CFBundleName</key>
<string>Combining HEF&CBHI</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>Combining HEF&CBHI 1.0.0.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>4.0.0.950</string>
<key>CSResourcesFileMapped</key>
<true/>
<key>LFPrefersCarbon</key>
<true/>
<key>LSGetAppDiedEvents</key>
<true/>
<key>NSAppleScriptEnabled</key>
<string>YES</string>
<key>NSHumanReadableCopyright</key>
<string>2010 All rights reserved worldwide</string>
<key>UTExportedTypeDeclarations</key>
<array>
<dict>
<key>UTTypeIdentifier</key>
<string>com.runrev.revolution.stack</string>
<key>UTTypeDescription</key>
<string>Revolution Stack</string>
<key>UTTypeConformsTo</key>
<array>
<string>public.data</string>
</array>
<key>UTTypeTagSpecification</key>
<dict>
<key>com.apple.macos.ostype</key>
<string>RSTK</string>
<key>public.filename-extension</key>
<array>
<string>rev</string>
</array>
</dict>
</dict>
</array>
</dict>
</plist>

Re: Icon problem - please help?

Posted: Thu Jan 13, 2011 12:51 pm
by Klaus
Hi Peter,

OK, so your icon file need to be named: Standalone.icns
Is it?


Best

Klaus

Re: Icon problem - please help?

Posted: Thu Jan 13, 2011 10:51 pm
by peter.s
Hi Klaus - Yes, the icon is named Standalone.icns.

The original icon file has a different name of course, but after I make the standalone and check in the package the icon's name has been changed to Standalone.icns

Could it have something to do with the Standalone settings I would have set before outputting the project? I can't think of anything in the settings I have changed since previous test standalones which have displayed the icon properly...

Peter

Re: Icon problem - please help?

Posted: Fri Jan 14, 2011 11:40 am
by Klaus
Hi Peter,

hmm, nothing in the standalone settings (besides the choice of the icon file) does actually affect the icons.

Sorry, no idea so far. You could you send me your /zipped) standalone if you like and I will take a look.
klaus AT major-k.de


Best

Klaus