This is MHStdErrorTool.m in view mode; [Download] [Up]
/* --------------------------------------------------------------------------
Class: MHStdErrorTool
Version: 0.1
File: MHStdErrorTool.m
Written by: Thomas Engel
Created: 17.05.1995 (Copyleft)
Last modified: 17.05.1995
Note: For a detailed description please read the class documentation.
------------------------------------------------------------------------- */
#import <MHStdErrorTool.h>
@implementation MHStdErrorTool
- view
{
if( !view )
{
if( [NXApp loadNibSection:"StdErrorTool.nib" owner:self] == nil )
NXRunAlertPanel( NULL, "Couldn't load StdErrorTool.nib",
"OK", NULL, NULL );
}
return [super view];
}
- image
{
return [NXImage findImageNamed:"ConsoleTool"];
}
- (BOOL)canProcess:aFile for:aController
{
// Let super prepare the data...but we will try to handle everything.
[super canProcess:aFile for:aController];
return YES;
}
- (BOOL)isProcessing
{
return [shell isRunning];
}
- shell
{
if( !shell )
{
if( [NXApp loadNibSection:"StdErrorTool.nib" owner:self] == nil )
NXRunAlertPanel( NULL, "Couldn't load StdErrorTool.nib",
"OK", NULL, NULL );
}
return shell;
}
- subprocess:sender done:(int)status :(MiscSubprocessEndCode)code
{
[processController toolDidStopProcessing:self];
return self;
}
@endThese are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.