Recent

Author Topic: Icon for App Bundle  (Read 955 times)

axisdj

  • Jr. Member
  • **
  • Posts: 64
Icon for App Bundle
« on: July 23, 2020, 07:46:44 pm »
Hello Group

I cannot get the icon for the bundle to show

the icns file is in the Contents/Resources directory, I can open it on a mac and it shows all the resolutions 16,32,128,256,512

I have specified it in the info.plist file as:
   <key>CFBundleIconFile</key>
   <string>theIconName.icns</string>

I just cannot get it to show?

axisdj

  • Jr. Member
  • **
  • Posts: 64
Re: Icon for App Bundle
« Reply #1 on: July 24, 2020, 03:49:03 am »
Well.. that was frustrating.

It appears the .app folder needed to be moved in and out of a .dmg for the icon to show up.

how horrible, all was correct in plist and the incs file were correct.

MacOS sure is a challenge

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2023
  • Former Delphi 1-7, 10.2 user
Re: Icon for App Bundle
« Reply #2 on: July 24, 2020, 08:09:51 am »
Finder caching the app icon is documented - see the Wiki article Adding an icon to your app bundle.

There's plenty of helpful code examples and hints available in the Wiki - start at the Mac Portal.

axisdj

  • Jr. Member
  • **
  • Posts: 64
Re: Icon for App Bundle
« Reply #3 on: July 24, 2020, 06:09:09 pm »
thanks Trev,

I did not find that wiki, would have saved a lot of time. thanks for sharing it.

It is a whole new world going to mac after being PC for 25 years... ill get there.

thanks!

 

TinyPortal © 2005-2018