Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Application icon
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Phillip Pollard  
View profile  
 More options Apr 20 2012, 5:02 pm
From: Phillip Pollard <lowreedp...@gmail.com>
Date: Fri, 20 Apr 2012 14:02:43 -0700 (PDT)
Local: Fri, Apr 20 2012 5:02 pm
Subject: Application icon

I forget what horrible, outdated Wx tutorial I found this gem in, but on my
base frame:

  $frame->SetIcon( Wx::GetWxPerlIcon() );

In windows, this produces a nice WxPerl icon on the application. In OsX it
doesn't seem to work and you only have the generic application icon. (dark
terminal)

For clarity, I am talking about the icons assigned in the various status
bars while the application is running. NOT the icon for the .exe/.app on
disk.

I'm not clear where this issue falls: Wx, Citrus, Cava, Apple, etc.

Any clue?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Citrus Support  
View profile  
 More options Apr 20 2012, 5:20 pm
From: Citrus Support <supp...@citrusperl.com>
Date: Fri, 20 Apr 2012 22:20:55 +0100
Local: Fri, Apr 20 2012 5:20 pm
Subject: Re: [Citrus Perl] Application icon
Hi,

For a .app bundle you have to assign a .icns file as the application
icon. Cava will then setup the bundle for you. It is the icon on disk
that gets used for all the things you want on MacOSX.

That's just the way Mac OSX works I'm afraid.

Making a quick .icns file =

Get a square .png file that will render OK at 128 * 128 and do

sips -s format icns -z 128 128 mysource.png --out mytarget.icns

sips is a largely undocumented MacOSX utility.

Regards

Mark

On 20/04/2012 22:02, Phillip Pollard wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Phillip Pollard  
View profile  
 More options Apr 30 2012, 5:00 pm
From: Phillip Pollard <lowreedp...@gmail.com>
Date: Mon, 30 Apr 2012 14:00:08 -0700 (PDT)
Local: Mon, Apr 30 2012 5:00 pm
Subject: Re: [Citrus Perl] Application icon

Thanks! Setting the icon for the app bundle works great.

What I had noticed is the quoted code worked on the windows side to change
the icon when running live (IE: not packaged as an app.) in the Citrus Perl
interpreter. But not it does not for Osx. I wonder if there is a missing
resource or such.

- Phil


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Citrus Support  
View profile  
 More options Apr 30 2012, 6:25 pm
From: Citrus Support <supp...@citrusperl.com>
Date: Mon, 30 Apr 2012 23:25:52 +0100
Local: Mon, Apr 30 2012 6:25 pm
Subject: Re: [Citrus Perl] Application icon
Hi,

On 30/04/2012 22:00, Phillip Pollard wrote:

> Thanks! Setting the icon for the app bundle works great.

> What I had noticed is the quoted code worked on the windows side to
> change the icon when running live (IE: not packaged as an app.) in the
> Citrus Perl interpreter. But not it does not for Osx. I wonder if there
> is a missing resource or such.

No. OSX always takes the icon from the application - which in this case
is Perl which has none. (isn't packaged as an 'app').

Packing a Perl interpreter as an app would be quite trivial.

you need a directory structure to drop a copy of the existing Perl exec
into.

Perl.app
Perl.app/Contents
Perl.app/Contents/MacOS
Perl.app/Contents/MacOS/perl
Perl.app/Contents/Info.plist
Perl.app/Contents/Resources/appicon.icns

Look at the Info.plist file for any Citrus packed app - and make a copy
changing the obvious paths

Then if you call Perl as

somepath/Perl.app/Contents/MacOS/perl

you should get appicon.icns as your application icon.

This is also one of the reasons I added the capability to 'wrap' a
script to Citrus.

After wrapping, you can always edit the wrapped script which will be in

apps/MyApp.app//Contents/Resources

Cheers

Mark


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »