So, I looked at all your methods, including what Stefan did in the other thread. On their own these work well, but weirdly I still get it outputting text in this patch which is essentially the same only with a bit of eye candy and some customisability (real word?).
When the dialogbox/patch opens with a bang the gate is closed. If the text box is defocused then nothing should get through because the gate is closed. Clicking cancel sends a 0 to the left inlet of gate anyway so even if it was open it should still be closed when the wclose message is sent to this patcher.
In fact, the only time the gate is open is if the OK button is clicked and then after the text is sent it's closed again.
Yet if I still type some different text in and press cancel the text is output, seemingly through a closed gate.
Am I going mad?
Here's a test patch and I have attached the abstraction.