<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt"><span style="" class="">Sorry.  The comment for </span><span style="" class="">t_gpointer</span> says that it (i.e., the gpointer) can point to a gobj in a glist.  At the same time it looks like it is limited to just scalars, so I was wondering if I could abuse it to store references to t_texts.<br><br>I'm putting together an object to query the attributes of a Pd object on a canvas.  I already have an object to query canvas info, and I want a few methods in [canvasinfo] that will output references to objects on the canvas (for example, a "find" method).  So I was wondering about abusing gpointers to send the references between [canvasinfo] and [objectinfo].<br><br>Now I'm thinking I'll just send around floats to represent the index number of the object.  That adds a
 floatinlet to the interface of [objectinfo] (to set the canvas "level") as well as a loop to arrive at the relevant object.  But that's still probably easier than what I'm wondering about doing with t_gpointer.<br><br>-Jonathan<br><br><br style=""><div class="qtdSeparateBR"><br><br></div><div style="display: block;" class="yahoo_quoted"> <div class="" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"> <div class="" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 12pt;"> <div style="" class="" dir="ltr"> <font style="" class="" face="Arial" size="2"> On Wednesday, June 4, 2014 4:43 AM, Miller Puckette <msp@ucsd.edu> wrote:<br style="" class=""> </font> </div>  <br style="" class=""><br style="" class=""> <div style="" class="">what's the "it" that can point to a gobj?  I can't fgure out what this question<br style=""
 class="" clear="none">means...<br style="" class="" clear="none"><br style="" class="" clear="none">cheers<br style="" class="" clear="none">M<br style="" class="" clear="none"><div style="" class="" id="yqtfd68663"><br style="" class="" clear="none">On Tue, Jun 03, 2014 at 11:48:29AM -0700, Jonathan Wilkes via Pd-list wrote:<br style="" class="" clear="none">> The comment in m_pd.h says it can point to a gobj in a glist.  So if I want to store a reference to something that has a gobj header, can I just cast to t_scalar*?<br style="" class="" clear="none">> <br style="" class="" clear="none">> -Jonathan</div><br style="" class="" clear="none"><br style="" class="" clear="none">> _______________________________________________<br style="" class="" clear="none">> <a href="" style="" class="" shape="rect" ymailto="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list<br style="" class="" clear="none">> UNSUBSCRIBE and
 account-management -> <a href="" style="" class="" shape="rect" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><div style="" class="" id="yqtfd61765"><br style="" class="" clear="none"><br style="" class="" clear="none"></div><br style="" class=""><br style="" class=""></div>  </div> </div>  </div> </div></body></html>