Dict in Java ?

KrisW's icon

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 ?

Jan M's icon

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

KrisW's icon

Thank you for the clarification Jan .

Funk Eater's icon

Just stumbled upon this. Either it should be implemented or the documentation should be updated.
Current situation is frustrating :-/

Chris Vik's icon

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?

nick rothwell | project cassiel's icon

Correct: at the moment, dictionaries aren't accessible to mxj.

Chris Vik's icon

Damn. Thanks for the clarification.

jdigerness's icon

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.

Jan M's icon

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.

jdigerness's icon

Hi Jan, you're right. . . . i just tried with 7 and no dice. thanks for the info.

Joe Nealon's icon

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?