🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
Error Reporting on a Mac
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?
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement