Bruce Lewis wrote:

> 3. Put nothing in each control. In a stack that I will insert in the back I
> will determine the target of each mouseup and call a handler depending on
> the name of the target.
> 
> As far as I can see all of these methods will work.
> 
> Method 3 is perhaps slower, but I assume the difference would be
> inconsequential. 

Indeed it is.  Measuring the different with MetaBench shows it to be about
0.00064 ticks.  :)

MetaBench can be downloaded at:
<ftp://ftp.fourthworld.com/MetaCard/4W_MetaBench.mc.sit.hqx>

> It also seems somehow contrary to the spirit of how this
> kind of scripting should work. By the same logic, you need never put
> scripts in any specific controls, but instead just check all messages as
> part of one massive script in the back.

Not contrary at all:  such flexibility and consolidation is part of the
beauty of the message hierarchy.


-- 
 Richard Gaskin 
 Fourth World Media Corporation
 Multimedia Design and Development for Mac, Windows, UNIX, and the Web
 _____________________________________________________________________
 [EMAIL PROTECTED]                 http://www.FourthWorld.com
 Tel: 323-225-3717           ICQ#60248349            Fax: 323-225-0716


Reply via email to