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

Re: [MacPerl] more brain hurtage



At 5:37 PM -0400 7/9/1998, Chris Nandor wrote:
>I have successfully created a module with my droplet.  I still have a lot
>to do, but the events and classes are taken care of, mostly.  So the
>droplet creates Mac::Glue::Finder, and I can do:
>
>  $f = new Mac::Glue::Finder;
>  $f->update({item=>['my file',
>    {folder=>['my folder',
>    {folder=>['my other folder',
>    {disk=>'HD',
>}]}]}]});
>
<big snip!>
>Any thoughts?

Would it be possible to create a generic AE object?

My initial thoughts are for the module to create separate methods for each
event. Each method would take whatever necessary parameters, figure out
whatever other info it needs and passes all these info to the generic AE
obj which does the actual generating and sending of AE.

Thus, I can do

$f = new Mac::Glue::Finder;
$f->open_about_box();
$f->copy_to ('Path_to_Folder_receiving_copies', 'Path_to_File1',
'Path_to_File2');
$f->duplicate ('Path_to_File1', 'Path_to_Folder1');
$f->duplicate (@ARGS);
$f->empty_trash();

and so on.

Hope I didn't make your head hurt some more ... :-).



Cheers,
Ramesh

`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`
        Horse sense is the thing a horse has
        which keeps it from betting on people.
                        -W. C. Fields
`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`



***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch