replacement for scheduleDelay in Max6 API?

Dec 15, 2012 at 12:53pm

replacement for scheduleDelay in Max6 API?

Hello!
I’m learning to work with the Executable to run delayed tasks using eclipse java and max6. I don’t want to use MaxClock since
the tasks shouldn’t be repeated. the ‘WritingMaxExternalsInJava.pdf’ guide shows that the function scheduleDelay() should be available
that should allow me to run Executable classes with specified delays but for some reasons they are not available.
maybe this document is outdated.

can anyone please provide a replacement to scheduleDelay function ?

question number 2: if I create an Executable class that implements Executable in a separated file for a cleaner code,
all the outlet and inlet functions are not visible for that class. how can i overcome that problem ?

thank you!

kfir

#65684
Dec 15, 2012 at 4:06pm

I can’t answer Q1 since I’m away from anything resembling a real computer, but for Q2: pass the parent MaxObject as an argument to the constructor of your Executable class.

#236595
Dec 16, 2012 at 8:54pm

thank you. works. now what’s the last is the first question :)

#236596
Dec 16, 2012 at 10:07pm

OK: try MaxSystem.scheduleDelay(Executable, double). It looks like a typo in the docs. The method’s definitely in max.jar, at least according to Eclipse.

#236598
Dec 17, 2012 at 8:07am

thank you! that works!

#236599

You must be logged in to reply to this topic.