Sign in to follow this  

Error Reporting on a Mac

This topic is 3830 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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