On Mar 20, 2007, at 4:35 PM, Kevin Walzer wrote:

1. Is CamelBones the only option for developing a native Perl GUI on OS X? Does anyone use wxPerl, or Tcl::Tk (to get access to native Aqua Tk)? I'm not interested in Perl/Tk because it's X11-based.

It's the only option *I* use. But I'm a bit biased. :-)

2. What options are available for deploying Perl applications as standalone app bundles with all frameworks/libraries shipped with the app? Is there a tool like py2app (Python) for Perl? I know about tools such as PAR and perl2exe, but I don't know how these translate into Mac app deployment.

As of CamelBones 1.0.1, the PAR module and its prerequisites are included with CamelBones - Drop a zipped .par onto your project. It'll be copied into your app's Resources/ subdirectory automatically - Xcode's default for file types it doesn't know about.

Then, in your main.pl:

        BEGIN {
                use CamelBones qw(:All);
                my $resDir = NSBundle->mainBundle()->resourcePath();
                eval "use PAR '$resDir/*.par'";
        }

PARs with XS modules can be complicated to create for Mac OS X - you'll need version and arch-specific subdirectories for the 5.8.1 and 5.8.6 (universal) Perls in Panther and Tiger, depending on what OS version(s) you want to support. Prebuilt PARs for some of the most commonly-used XS modules are included in /Developer/CamelBones/Modules/.

sherm--

Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net


Reply via email to