you can append the string in text field by
[TextFieldValue setStringValue:[NSString stringWithFormat:@"%@%@", [TextFieldValue stringValue], updatedString]];
if you want it to sleep, use
CFRunLoopRunInMode(kCFRunLoopDefaultMode, 1/*seconds*/, NO);
instead of sleep
so your app won't be freezed