In article <3820A733.670A74B6@becktek.com>, Stephen Beck <beck@becktek.com> writes: > I've been poring over the sample progs in MPPE, e.g.: Ah! Powerful MPPE is! Much knowledge poring over it brings! > sub draw_it { > PaintOval() > ... > } > QuickDraw.pm and .xs, Inside Macintosh, and MacPerl source code, > and now have decided I should ask: > How does MacPerl know it needs to set up the PICT environment to > handle the QuickDraw calls appearing in the draw_it routine? These calls are not part of a picture. They draw directly, in reponse to an update event. The propagation of the update event into the draw_it call is done by the MacWindow framework in reponse to a $win->sethook("redraw", \&draw_it) call. Matthias -- Matthias Neeracher <neeri@iis.ee.ethz.ch> http://www.iis.ee.ethz.ch/~neeri "And that's why I am going to turn this world upside down, and make of it a fire so *bright* that someone real will notice" -- Vernor Vinge, _Tatja Grimm's World_ ==== Want to unsubscribe from this list? ==== Send mail with body "unsubscribe" to macperl-toolbox-request@macperl.org