[PD] storing pointers (in C) to other objects?
Olaf Matthes
olaf.matthes at gmx.de
Wed Mar 16 17:51:31 CET 2005
Mike Wozniewski wrote:
> A follow-up question that might provide a solution to this problem:
>
> Perhaps I could create a 'list' during my obj_setup() method which would
> be accessible by all instances of my class?
Yes, that's the way to go.
> Is this possible? How would I go about creating this list? Where should
> the 'list' variable be defined?
As a global variable in your code (not part of the t_yourobject struct
and not defined as static). You might also need another variable (being
declared the same way) counting the number of instances of your object
since the first one will probably have to do some initilization work.
Olaf
More information about the Pd-list
mailing list