[PD-dev] object dependency management

max jacob m.jacob at tiscalinet.it
Wed Mar 16 17:28:14 CET 2005


hallo again.
i wonder if there is a way to defer the instantiation of an object if 
this object depends on the instantiation of another one.
my use case: i'm writing an external that allows to use sqlite3 
databases in pd. i have an object called "database" that associates a 
file path to an alias. this alias is used by other objects called 
"query". by now i'm deferring the binding between the two as far as 
possible since i have no control on who is instantiated first when a 
patch is loaded. but i could certainly make many improvements if in the 
"new method" of the query i was sure that the database object has 
already been instantiated. (it's a little more complex than that, but 
anyway...)
thanks
m.






More information about the Pd-dev mailing list