Dict in Java ?
Hi !
here https://cycling74.com/docs/max6/dynamic/c74_docs.html#dictionaries is written that :Support for using Dict objects in mxj mirrors that of the implementation for JavaScript.
well , hummmmm .... has someone luck with it ? I cant find the class object . does this description tells something different ?
Despite the documentation dict is not implemented into Java. I had some correspondence about that with cycling74 about a year ago. Back then there wasn't a date set when it will be ready.
Jan
Thank you for the clarification Jan .
Just stumbled upon this. Either it should be implemented or the documentation should be updated.
Current situation is frustrating :-/
I've just started poking around with both JavaScript and Java for extending my Max applications, so sorry if it seems I'm asking the obvious.
The documentation states that [dict] functionality exists equally within [mxj] as it does in [js], but it in fact does not?
Then am I right in understanding that it is not at all possible to access a [dict] from within an [mxj] object?
Correct: at the moment, dictionaries aren't accessible to mxj
.
Damn. Thanks for the clarification.
but, as of Max 7, dict is apparently supported by mxj
. from the Max 7 refpage: "Support for using Dict objects in mxj
mirrors that of the implementation for JavaScript."
horray.
this sentence is as old as the dict object. so far it simply hasn't been true. I did not try yet with Max 7 but i believe it is not implemented. the plans at c74 are to grant java functionality the way it is, but not to implement new features.
Hi Jan, you're right. . . . i just tried with 7 and no dice. thanks for the info.
You could save your dictionary as a json and use a parse it to parse it. In the same way you would get the contents of a dictionary. Correct?