Mac Executable Creation Issue with Icon and Graphical Ver.

Mac OSX specific forum
MarkR
New User
New User
Posts: 8
Joined: Fri Apr 18, 2008 9:03 pm
Location: USA

Mac Executable Creation Issue with Icon and Graphical Ver.

Post by MarkR »

Hello,

I am a new PureBASIC user and member of these forums.

I am using 4.10 on an Intel Mac (10.4.x) and when I go to build the executable it creates a terminal based application which in turn does not run correctly. Inside PB it is fine. I have the Executable Format set to Mac OS so not sure what else to do. As well, can't seem to get a *.icns file to take to the application as well.

Any feedback is appreciated.

Thanks.

Mark
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Call it "yourapplication.app" instead of just yourapplication when saving (I think it was "app" at least).
MarkR
New User
New User
Posts: 8
Joined: Fri Apr 18, 2008 9:03 pm
Location: USA

Post by MarkR »

Thanks!!! The ***.app helped to make it a GUI executable.

I used ICON Composer along with .png files to make a *.icns file and the icon for the application is the Mac default pencil, ruler, brush but when I launch it the icon on the dock is correct.

If anyone can explain this that would be great. I have never developed on the Mac before.

Mark
freak
PureBasic Team
PureBasic Team
Posts: 5948
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

MarkR wrote:I used ICON Composer along with .png files to make a *.icns file and the icon for the application is the Mac default pencil, ruler, brush but when I launch it the icon on the dock is correct.
Sounds like you first created an exe without icon and then overwrote it with
a new one with an icon. This probably confused Finder a bit, which caches the Icons iirc.
Try creating an exe with a new name or new location. Also restarting the computer
might help as well.

If it shows in the dock correctly, then the icon should be correctly included.
Its just not visible in Finder yet.
quidquid Latine dictum sit altum videtur
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

Freak: I'm not used to Macs either, do you know of a way to flush the icon cache in Finder?
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
freak
PureBasic Team
PureBasic Team
Posts: 5948
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

Nope, sorry.
quidquid Latine dictum sit altum videtur
MarkR
New User
New User
Posts: 8
Joined: Fri Apr 18, 2008 9:03 pm
Location: USA

Follow Up

Post by MarkR »

Well this morning the icon was finally there. Thanks. I am sure in the future I will know about the Mac. I tried different application names, rebooting, etc. Right now just trying to develop on Windows and make sure my code works on Linux and the Mac.

Thanks for everyone's help. If I learn more about the .icns file and the icons I will repost here.

Mark
Post Reply