fixed setText for mac

added isCreated bool before all loop functions so that they can be used
in dynamically allocated objects without problems