[PD-dev] class_setfieldnames
Thomas Grill
gr at grrrr.org
Thu Oct 6 10:31:09 CEST 2005
Hi Mathieu,
maybe i'm a bit slow today, but (probably since i don't use desire.tk)
could you explain again in other words what that is used for?
Currently, i have no idea what "fields" are and what one can do with
them.
best greetings,
Thomas
Am 06.10.2005 um 09:18 schrieb Mathieu Bouchard:
>
> hi everybody, I just added this:
>
> EXTERN void class_setfieldnames(t_class *x, const char *s);
>
> It's intended to store the names of the fields. What counts as fields
> and
> what doesn't is another story. Each struct inheriting from t_gobj has a
> number of things in it, but I'm especially intending this for messages
> as
> found in *.pd files, that is, constructors of objects.
>
> By convention I include *every* atom in the creation message, which
> includes pretty obvious things like "#X obj". What people type in an
> objectbox starts at argument number 5. (and argument numbering starts
> at
> 0).
>
> example of use:
>
> class_setfieldnames(bang_class,
> "foo bar x1 y1 class w hold break isa "
> "snd rcv lab ldx ldy fstyle fs bcol fcol lcol");
>
> where the string is a space-separated list of fields, and in this case
> it's straight from running desire.tk and typing this in the tcl box:
>
> global fields; list $fields(bng)
>
> ____________________________________________________________________
> Mathieu Bouchard - tél:+1.514.383.3801 - http://artengine.ca/matju
> Freelance Digital Arts Engineer, Montréal QC Canada
>
> _______________________________________________
> PD-dev mailing list
> PD-dev at iem.at
> http://lists.puredata.info/listinfo/pd-dev
>
>
More information about the Pd-dev
mailing list