[PD-dev] how to use canvas_getcurrent() ?

Miller Puckette mpuckett at man104-1.ucsd.edu
Wed Nov 3 00:06:37 CET 2004


Hi Tim,

always call it from the new() routine; otherwise the current canvas is
undefined.  You can store the pointer for later (an object's parent canvas
is guaranteed never to change.)

cheers
Miller

On Sun, Oct 31, 2004 at 11:13:21PM +0100, Tim Blechmann wrote:
> hi all ...
> 
> i'm curious about the behaviour of canvas_getcurrent() ... i'm using it
> in k_cext and only get NULL ...
> 
> is there anything i have to pay attention on when using it?
> 
> cheers ... tim
> 
> -- 
> mailto:TimBlechmann at gmx.de    ICQ: 96771783
> http://www.mokabar.tk
> 
> After one look at this planet any visitor from outer space 
> would say "I want to see the manager."
> 				      William S. Burroughs
> 
> _______________________________________________
> PD-dev mailing list
> PD-dev at iem.at
> http://iem.at/cgi-bin/mailman/listinfo/pd-dev




More information about the Pd-dev mailing list