changed the AppFrameworkCocoaView to use a NSTimer instead of a while loop, as the while loop was blocking the system