app icon file

Mac OSX specific forum
BlindMan
User
User
Posts: 32
Joined: Thu Aug 30, 2018 11:34 am

app icon file

Post 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
wilbert
PureBasic Expert
PureBasic Expert
Posts: 3870
Joined: Sun Aug 08, 2004 5:21 am
Location: Netherlands

Re: app icon file

Post 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.
Windows (x64)
Raspberry Pi OS (Arm64)
Wolfram
Enthusiast
Enthusiast
Posts: 568
Joined: Thu May 30, 2013 4:39 pm

Re: app icon file

Post 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.
macOS Catalina 10.15.7
BlindMan
User
User
Posts: 32
Joined: Thu Aug 30, 2018 11:34 am

Re: app icon file

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