Error Reporting on a Mac

Started by
0 comments, last by Bregma 16 years, 10 months ago
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?
"Who's John Galt?"
Advertisement
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.

Stephen M. Webb
Professional Free Software Developer

This topic is closed to new replies.

Advertisement