Icon problem - please help?

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

peter.s
Posts: 99
Joined: Thu Jul 10, 2008 11:47 am

Icon problem - please help?

Post 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
Janschenkel
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 977
Joined: Sat Apr 08, 2006 7:47 am
Contact:

Re: Icon problem - please help?

Post by Janschenkel »

Maybe the Finder isn't refrezshing its database - what happens if you zip the .app and then unzip it?

Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com
Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Icon problem - please help?

Post 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
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
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Icon problem - please help?

Post 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
peter.s
Posts: 99
Joined: Thu Jul 10, 2008 11:47 am

Re: Icon problem - please help?

Post 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 :(
Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Icon problem - please help?

Post by Mark »

Hi Peter,

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
peter.s
Posts: 99
Joined: Thu Jul 10, 2008 11:47 am

Re: Icon problem - please help?

Post 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
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Icon problem - please help?

Post by Klaus »

Hi Peter,

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


Best

Klaus
peter.s
Posts: 99
Joined: Thu Jul 10, 2008 11:47 am

Re: Icon problem - please help?

Post 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
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Icon problem - please help?

Post 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
kray
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 56
Joined: Sat Apr 08, 2006 5:28 pm
Contact:

Re: Icon problem - please help?

Post 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?
Ken Ray
Sons of Thunder Software
Email: kray@sonsothunder.com
Web site: http://www.sonsothunder.com
peter.s
Posts: 99
Joined: Thu Jul 10, 2008 11:47 am

Re: Icon problem - please help?

Post 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>
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Icon problem - please help?

Post by Klaus »

Hi Peter,

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


Best

Klaus
peter.s
Posts: 99
Joined: Thu Jul 10, 2008 11:47 am

Re: Icon problem - please help?

Post 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
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Icon problem - please help?

Post 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
Post Reply