Icon problem - please help?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Icon problem - please help?
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
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
-
- VIP Livecode Opensource Backer
- Posts: 977
- Joined: Sat Apr 08, 2006 7:47 am
- Contact:
Re: Icon problem - please help?
Maybe the Finder isn't refrezshing its database - what happens if you zip the .app and then unzip it?
Jan Schenkel.
Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com
www.quartam.com
Re: Icon problem - please help?
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
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
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Re: Icon problem - please help?
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
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?
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
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?
Hi Peter,
How did you make the icns file? What is the size of the icns file inside the application package?
Mark
How did you make the icns file? What is the size of the icns file inside the application package?
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Re: Icon problem - please help?
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
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?
Hi Peter,
when you doubleclick the ICNS file, does it open in "Preview" and looks OK?
Best
Klaus
when you doubleclick the ICNS file, does it open in "Preview" and looks OK?
Best
Klaus
Re: Icon problem - please help?
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
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?
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
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?
Can you post the contents of the Info.plist file inside the Mac bundle?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...
Ken Ray
Sons of Thunder Software
Email: kray@sonsothunder.com
Web site: http://www.sonsothunder.com
Sons of Thunder Software
Email: kray@sonsothunder.com
Web site: http://www.sonsothunder.com
Re: Icon problem - please help?
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.Can you post the contents of the Info.plist file inside the Mac bundle?
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?
Hi Peter,
OK, so your icon file need to be named: Standalone.icns
Is it?
Best
Klaus
OK, so your icon file need to be named: Standalone.icns
Is it?
Best
Klaus
Re: Icon problem - please help?
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
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?
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
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