Page 1 of 1

app icon file

Posted: Thu Mar 19, 2020 2:33 pm
by BlindMan
Hi

I've just compiled a PB program developed on Windows on Mac OSX.
App works as expected (which is quite incredible).

PB compilation saves app to Desktop but correct icon doesn't display on desktop.
The .ico file is in the apps Resources directory.

Will a Windows ico file work on OSX?
Does the ico file need to be a specific size for OSX?

Using PureBasic 5.72 Beta 2 for MacOS X (64-bit) on Catalina 10.15.3

Re: app icon file

Posted: Thu Mar 19, 2020 2:53 pm
by wilbert
BlindMan wrote:Will a Windows ico file work on OSX?
ICO format won't work.
Your icon needs to be ICNS format for macOS.

Re: app icon file

Posted: Thu Mar 19, 2020 3:16 pm
by Wolfram
You can convert it easily on OSX with the Preview app.

Open it and use "Export.." from the File menu.
In the save file dialog is a combobox with different file formats. Presse is while holding the ALT key and choose INCS.

Re: app icon file

Posted: Thu Mar 19, 2020 4:27 pm
by BlindMan
Used sips to convert 256x256 ico file to ICNS file.

Had to send apps executable directory from desktop to bin before recompiling as just recompiling did not update desktop icon.

I'm a bit out of date with Apple. Prior to yesterday, last Apple I used was an Apple II in 1979.
I had a spare HDMI port on my monitor so I purchased a 2014 Mac mini off ebay.