The function
execute-with-interface-if-alive
applies the function
function
to the arguments
args
in the process of the interface
interface
, if the interface is "alive". An interface is alive if it has a representation on the screen.
If interface is not alive, function is not applied. This is in contrast to execute-with-interface, which in this case applies the function in the current process.
execute-with-interface-if-alive
is useful for automatic updating of interfaces that may be destroyed by the user, where the update is redundant if the interface is not alive.
All accesses (reads as well as writes) on a CAPI interface and its sub-elements should be performed in the interface process. Using
execute-with-interface-if-alive
is one way of ensuring this.
CAPI Reference Manual - 15 Dec 2011