Skip Menu |

This queue is for tickets about the Wx CPAN distribution.

Report information
The Basics
Id: 59092
Status: open
Priority: 0/
Queue: Wx

People
Owner: Nobody in particular
Requestors: mackyle [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: wxPerl should not be required on Mac OS X 10.3 and later
When running Wx applications on Mac with the standard perl interpreter (/usr/bin/perl for example) the following warning is displayed: On Mac OS X please run scripts with the 'wxPerl' interpreter And the application fails to show in the Dock, App Switcher or have an accessible menu. Running using wxPerl corrects the problem but is awkward. Using the special 'wxPerl' interpreter is not necessary on Mac OS X version 10.3 and later provided the Wx perl interface executes the following C code at some point before entering the MainLoop: #include <ApplicationServices/ApplicationServices.h> void make_front_application() { /* Become a foreground application */ ProcessSerialNumber kCurrentPSN = {0, kCurrentProcess}; TransformProcessType(&kCurrentPSN, kProcessTransformToForegroundApplication); /* Become the frontmost application (only after TransformProcessType) */ SetFrontProcess(&kCurrentPSN); } The above requires linking against -framework ApplicationServices NOTE: The TransformProcessType call is only available in Mac OS X 10.3 and later.
Subject: Re: [rt.cpan.org #59092] wxPerl should not be required on Mac OS X 10.3 and later
Date: Tue, 06 Jul 2010 07:52:11 +0200
To: bug-Wx [...] rt.cpan.org
From: Mattia Barbon <mattia.barbon [...] libero.it>
via RT wrote: Hi, Show quoted text
> And the application fails to show in the Dock, App Switcher or have an accessible menu. Running using wxPerl corrects the problem but is > awkward. Using the special 'wxPerl' interpreter is not necessary on Mac OS X version 10.3 and later provided the Wx perl interface executes > the following C code at some point before entering the MainLoop:
Committed; I'll make a development release this evening. The funny thing is that the current code to create the wxPerl executable comes from the Apple patch to wxPerl when it was included in Tiger; I wish they used this solution instead. Show quoted text
> NOTE: The TransformProcessType call is only available in Mac OS X 10.3 and later.
Not a problem, since wxWidgets does not support 10.2 since some time. Thanks! Mattia
Il Mar 06 Lug 2010 04:16:34, mattia.barbon@libero.it ha scritto: Show quoted text
> via RT wrote:
Hi again, Show quoted text
> > And the application fails to show in the Dock, App Switcher or have
> an accessible menu. Running using wxPerl corrects the problem but is
> > awkward. Using the special 'wxPerl' interpreter is not necessary on
> Mac OS X version 10.3 and later provided the Wx perl interface > executes
> > the following C code at some point before entering the MainLoop:
> > Committed; I'll make a development release this evening.
Released as 0.9702_01. Regards, Mattia