CEmbedRepeater *embedRepeater = new CEmbedRepeater; ThrowIfNil_(embedRepeater); embedRepeater->StartRepeating();
void InitializeEmbedEventHandling(LApplication* theApplication){    CEmbedEventAttachment *windowAttachment = new CEmbedEventAttachment;    ThrowIfNil_(windowAttachment);    theApplication->AddAttachment(windowAttachment);    CEmbedIdler *embedIdler = new CEmbedIdler;    ThrowIfNil_(embedIdler);    embedIdler->StartIdling();    CEmbedRepeater *embedRepeater = new CEmbedRepeater;    ThrowIfNil_(embedRepeater);    embedRepeater->StartRepeating();    #if TARGET_CARBON    InitializeTextInputEventHandling();#endif}