Keeping an application alive in C++ on Apple Mac OS-X

If you are writing a cross-platform application you are probably not going to use the Native OS-X app development tools, and you might end up with something in C++, for example with Qt. However,...