symbiosis of [Dict] , [pattr] & [JS]

Mar 7, 2013 at 10:18pm

symbiosis of [Dict] , [pattr] & [JS]

Hello everyone !

this must be really a noob thing but i cant get my head over it ,
Im binding my [Dict] with the [pattr] , to store data inside the patcher . I understand that when the [Dict] content has changed then the [pattr] is notified .
Everything is going as predicted while setting the data directly to the [Dict] object . But when i want to set some data through [JS] then [pattr] doesnt get dirty that way ? .
Is there something that i missed ?
how to let them live in symbiosis ?

– Pasted Max Patch, click to expand. –

rejoice
K

#66894
Mar 8, 2013 at 11:12am

anyone guys ? is there any elegant way of doing it ?

#240801
Mar 8, 2013 at 11:34am

Looks like a bug to me, based on a very initial check. It’s been added to our queue of stuff to further investigate and fix, if necessary.

Thanks, Jeremy

#240802
Mar 8, 2013 at 11:57am

paradoxally im feeling honored that i spotted the bug :D
Thank you Jeremy for your time ,and yes please take it under consideration !

edit :
will this be listed on a page while fixed ?

#240803
Mar 8, 2013 at 12:09pm

It will show up in the Release Notes of whatever version it’s fixed in. If we’re really on the ball, we’ll come back to the forum and make another note here, but don’t count on that. :-)

Jeremy

#240804
Mar 8, 2013 at 12:12pm

no problem Jeremy ,if its not there i will hunt for it in the release notes for the future updates . Thanks anyway

#240805
Mar 8, 2013 at 1:58pm

as for now this is the workaround that works in 99 % of the situations . that 1 % missing has to do with direct save without prompting a dialog window . touching menu or saving through shortcut will not make window out of focus which is required to let this trick work properly . I found this solution more convinient as i would love to not to HIT the [dict] on every operation two times (from JS and outside) , so this way [dict] gets dirty when window is out of focus . If someone has better idea , please share your thoughts . Thanks and see you .

– Pasted Max Patch, click to expand. –
#240806

You must be logged in to reply to this topic.