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

Re: [MacPerl] hurting my brain



At 19.08 -0400 1998.09.04, Jefferson R. Lowrey wrote:
>I think it would be better to do the order this way (if I follow what you
>are trying to say):
>$f->set(show_size=>[{window=>'my project'},'false'}]);

Mmm, good thought.  I'll think on it.  The only reason why this might be
bad is that it separates the data far apart from the property, like in the
PBar example:

  $p->set({minimum_value=>[{progress_bar=>[{window=>1}, 1]}, 0]});

Which 1 belongs to what?  What does the 0 go to?  You can tell, but it is
not as readily apparent.


>>It is pretty clear that this framework will create files with some assembly
>>required.  For instance, there is no easy way in Progress Bar for my
>>program to know that the parameters in the "make" event correspond to the
>>properties of the window class.  And in the Finder, there is no way for the
>>program to know the computer event (gestalt) is supposed to get constants
>>from the 'gsen' enumeration.  So I hope to make it easy hook things up
>>where this program leaves things unplugged.
>
>I think easy is a relative term here, but I'm not quibbling the bits.  I
>guess you mean your droplet will produce an output that lists those things
>that it remained undecided about?

Not necessarily.  I am not sure yet, but if I could do that, then it would
be ideal.

>And you might have a
>function/method/scriptlet that would allow one to add
>definitions/links/plugs?

Well, more events/classes can always be added in by hand.  Ideally, I
suppose, one would drop the plugin on the droplet, then merge that into the
module, too, probably by hand.  This would be a simple matter of copying
the data structures %EVENT and %CLASS (or something like that) from the new
file and pasting them into the other file.  Most of the heavy lifting is
handled by a few subroutines in another module and AUTOLOAD.  It should be
very easy to work with (yes, easy is a relative term ... :).

The whole thing is two parts: the separate module that gets inherited from,
and a droplet that is almost entirely based on David C. Schooley's
aeteconvert.

I hope to have a beta ready in a few weeks.  Weather permitting.  Could be
a few months.

--
Chris Nandor          mailto:pudge@pobox.com         http://pudge.net/
%PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10  1FF77F13 8180B6B6'])

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