[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl-Toolbox] HAL Lives!



> > The redraw hook is not called until the next WaitNextEvent or two. You
> > can either put in a few WNEs, or call it yourself.
> 
> I tried three WNEs after calling &setup_hal, which works, but seems 
> rather inelegant. Not sure exactly how to go about it the other way (I'm
> back to feeling daft again).

$win->redraw;

> Okay, saw demo.  Did syntax check on same. I get:
> 
> # Can't call method "dispose" without a package or object reference.
> File '<AppleEvent>'; Line 38
> 
> Line 38:
> 
> END {$win->dispose}
> 
> works better as:
> 
> END {
>       $win->dispose() if (defined($win));
>       }

Okay, I forgot that. It was a quick script and I usually don't do syntax
checks.

-- 
 Kevin Reid: |    Macintosh:      
  "I'm me."  | Think different.

==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-toolbox-request@macperl.org