Re: Mixing MacPerl and Glue causes Halucinations

2004-06-12 Thread Chris Nandor
In article [EMAIL PROTECTED],
 [EMAIL PROTECTED] (Alan Olsen) wrote:

 If you uncomment the Mac::Glue line, it will no longer be a graphical 
 UI, but a text one on the console.

Sorry about that, when I reorganized some code into Mac::Glue::Common I left 
this line always on:

   $MacPerl::Target = '' if $^O ne 'MacOS';

It really should be local()ized to the functions that need it, which I will 
do for the next release.

In your program, after the use statements, merely add this:

   $MacPerl::Target = 'SystemUIServer';

You likely won't need it after the next release of Mac::Glue.


 What am I doing wrong here?  (Other than using a Mac...)

:p

-- 
Chris Nandor  [EMAIL PROTECTED]http://pudge.net/
Open Source Development Network[EMAIL PROTECTED] http://osdn.com/


Mixing MacPerl and Glue causes Halucinations

2004-06-11 Thread Alan Olsen
here is a short Perl program:
#!/usr/bin/perl
#use Mac::Glue;
use MacPerl;
$val = MacPerl::Answer(Pick your function,Edit Program, Receive 
Program, Send Program);

Now if you run this you get a graphical UI dialog box.
If you uncomment the Mac::Glue line, it will no longer be a graphical 
UI, but a text one on the console.

What am I doing wrong here?  (Other than using a Mac...)
All I need for this program is a simple UI for picking files from a 
directory, a save dialog and a couple of list dialogs with buttons.  
The rest is socket code and misc processing to talk to a serial to 
ethernet box.

Alan Olsen
[EMAIL PROTECTED]
[EMAIL PROTECTED]