On Oct 26, 2007, at 3:38 PM, IOhannes m zmoelnig wrote:

> Hans-Christoph Steiner wrote:
>> On Oct 26, 2007, at 2:13 PM, Martin Peach wrote:
>>
>> Any specific suggestions?  You mean casting as (entry_class) or   
>> something like that?
>
> you have to copy the struct definitions from whereever to your file.
> look at "iem/iemguts/src/saveargs.c"
>
> fmasdr
> IOhannes

Whoa, that's not very straightforward, so something like this:

   t_canvas *canvas = (t_canvas*)glist_getcanvas(glist);
   t_atom *ap = binbuf_getvec(canvas->gl_obj.te_binbuf);
   t_symbol *s = atom_getsymbol(ap);

It would be nice to have this as a function in the API, or built into  
the savefn mechanism.

.hc

------------------------------------------------------------------------ 
----

Access to computers should be unlimited and total.  - the hacker ethic



_______________________________________________
PD-dev mailing list
[email protected]
http://lists.puredata.info/listinfo/pd-dev

Reply via email to