home *** CD-ROM | disk | FTP | other *** search
- #import "ErrorStream.h"
- #import <appkit/Application.h>
- #import <appkit/Panel.h>
- #import <stdio.h>
-
- @implementation ErrorStream
-
- static id default_error_stream = 0;
-
- + default
- {
- if (!default_error_stream)
- default_error_stream = [[ErrorStream allocFromZone:[NXApp zone]] init];
- return default_error_stream;
- }
-
- - report: (const STR) msg
- {
- NXRunAlertPanel("Error", "%s", 0, 0, 0, msg);
- return self;
- }
-
- @end
-