I have a form where the user enters a name for a preset in a CTextEdit. After the user clicks ‘ok’, I want to destroy the form. On iOS it takes some time before textEdit->platFormLooseFocus() is called, and if my form has already been destroyed, the app will crash.
How can I know when it’s safe to destroy my form?