Sign in to follow this  
TythosEternal

Error Reporting on a Mac

Recommended Posts

Good evening, I'm following the OpenGL tutorials and documentation found specifically at http://developer.apple.com/documentation/GraphicsImaging/Conceptual/OpenGL-MacProgGuide/opengl_drawing/chapter_3_section_4.html , but I'm having trouble with an innocuous function reportError(str), for which I cannot find documentation. This brings me to the main question: How do all y'all report / stream errors from a Carbon environment? Can I see some examples of writing to a text file stream, or do most people rely on interrupts? I'd like to be able to output them in realtime. I can think of several solutions, most of which involve reloading the Foundation classes, but I'd prefer something simple, straightforward, and effective. What's the best way? What do YOU do?

Share this post


Link to post
Share on other sites
How about just using std::cerr (or std::cout)? It works just fine in the Carbon environment on the Mac. If you want to launch your app from the GUI, wrap it in a script that redirects stdin and stdout.

Share this post


Link to post
Share on other sites
Sign in to follow this