Recent

Author Topic: [SOLVED] ShowMessage dialogs - wrong icon  (Read 237 times)

trev

  • Full Member
  • ***
  • Posts: 194
[SOLVED] ShowMessage dialogs - wrong icon
« on: July 19, 2019, 03:06:03 pm »
The ShowMessage dialog appears with the macOS default generic icon rather than the application icon. See attached pic.
« Last Edit: July 20, 2019, 01:39:26 am by trev »
o Lazarus v2.1.0 r61775, FPC v3.3.1 r42640, macOS 10.14.6 (with sup update), Xcode 10.3
o Lazarus v2.1.0 r61574, FPC v3.3.1 r42318, FreeBSD 12.0 (Parallels VM)
o Lazarus v2.1.0 r61574, FPC v3.0.4, Ubuntu 18.04 (Parallels VM)

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2267
    • havefunsoft.com
Re: ShowMessage dialogs - wrong icon
« Reply #1 on: July 19, 2019, 03:21:39 pm »
is Application icon specified in Icon.plist ?
Patron Cocoa Widgetset development https://www.patreon.com/skalogryz

trev

  • Full Member
  • ***
  • Posts: 194
Re: [SOLVED] ShowMessage dialogs - wrong icon
« Reply #2 on: July 20, 2019, 01:42:42 am »
I could have sworn that I had specified the icon file in the Resources/Info.plist file, but it seems that the app bundle has been regenerated at some point and it was not there.

Adding the Icon File key with the value MyApp.icns (located in Resources directory) fixed it.

Thanks again Dmitry.
o Lazarus v2.1.0 r61775, FPC v3.3.1 r42640, macOS 10.14.6 (with sup update), Xcode 10.3
o Lazarus v2.1.0 r61574, FPC v3.3.1 r42318, FreeBSD 12.0 (Parallels VM)
o Lazarus v2.1.0 r61574, FPC v3.0.4, Ubuntu 18.04 (Parallels VM)