[PD-dev] how to tell when a patch is finished loading

Miller Puckette mpuckett at imusic1.ucsd.edu
Wed Sep 2 02:00:13 CEST 2009


I don't think there's any existing way to do it--- time to design some
appropriate hooks :)

M

On Tue, Sep 01, 2009 at 05:23:26PM -0400, Hans-Christoph Steiner wrote:
> 
> On Sep 1, 2009, at 4:55 PM, Mathieu Bouchard wrote:
> 
> >On Tue, 1 Sep 2009, Hans-Christoph Steiner wrote:
> >
> >>I'm playing around with some GUI behaviors, and I was wondering if  
> >>anyone knows a way to tell that the patch is finished loading and  
> >>'pd' has finished sending all of the Tcl/sys_gui drawing commands.
> >>This would be a very useful hook for attaching Tcl procs for making  
> >>dynamic GUI behaviors.
> >
> >just ping the client... depends a bit on the branch...
> >
> >miller: sys_gui("pd %s done \\;\n",rcv->s_name);
> >hans:   sys_gui("pdsend \"%s done\"\n",rcv->s_name);
> >matju:  sys_gui("netsend \"%s done\"\n",rcv->name);
> >
> >provided that you have done pd_bind((t_pd *)self,rcv); and a  
> >class_addmethod for the name "done" (the callback).
> 
> Are there any existing methods?  I am actually thinking Tcl/GUI side.
> 
> .hc
> 
> ----------------------------------------------------------------------------
> 
> Man has survived hitherto because he was too ignorant to know how to  
> realize his wishes.  Now that he can realize them, he must either  
> change them, or perish.    -William Carlos Williams
> 
> 
> 
> _______________________________________________
> Pd-dev mailing list
> Pd-dev at iem.at
> http://lists.puredata.info/listinfo/pd-dev




More information about the Pd-dev mailing list