best boy wrote:
hi
is there a way to keep track of the number of opened instances of an
external?
Is this an external you are writing? Then yes. Otherwise there's weird
tricks you can probably do to keep track, but not control.
if so, can anyone point me to an example object?
Just have
Hallo,
best boy hat gesagt: // best boy wrote:
is there a way to keep track of the number of opened instances of an external?
if so, can anyone point me to an example object?
You could wrap it inside an abstraction which has a running counter
stored in a [value MYOBJECTCOUNT] object.
hi
yes, it's for an external i'm writing.
i tried the global counter variable thing you recommended and it works, except
for
when the first instance is duplicated, or copy/pasted in a patcher. this
crashes pd.
do you, or anyone else, know of a working example of the global counter
variable
hi
thanks for your help.
i checked out nopoly4 and polypoly, but they both seem to be abstractions and
are not very helpful in my case.
i need a working solution that prevents the user from creating more than one
instance of an external i'm writing.
thanks anyway
olli
CC: pd-dev@iem.at
From:
Check out [singleton] and search the archives for discussions on that:
http://lists.puredata.info/pipermail/pd-list/2007-03/048424.html
.hc
On Mar 23, 2008, at 4:13 PM, best boy wrote:
hi
thanks for your help.
i checked out nopoly4 and polypoly, but they both seem to be
abstractions and