More application editor work, safe data transfer

Introduced a safe data transfer mechanism for editor window return
values, previous method created inconsistent results (likely due to the
garbage collector)