/*
   Release 0.1  Copyleft (c)1995 by Thomas Engel.  All Rights Reserved. 

		MiscShell+Notification


		Filetype:		Category Implementation
		Stored in:		MiscShell+Notification.m				 
		Created on:		17.05.1995
		Last modified:	17.05.1995


	Class Description:
	
		For a detailed description of the interface please read the class
		documentation.

   --------------------------------------------------------------------------
*/

#import <MiscShell+Notification.h>

@implementation MiscShell (Notification)

- (BOOL)isRunning
{
	return executionInProgress;
}

- subprocess:sender done:(int)status :(MiscSubprocessEndCode)code
{
  	id	aDelegate;

	executionInProgress = NO;
    
    [self finishOutput];

	// forward if necessary.
	
	
	if( standardInput )
		aDelegate = [standardInput delegate];
	else if( standardOutput )
		aDelegate = [standardOutput delegate];
	else
		aDelegate = [standardError delegate];
		
	if( aDelegate  &&
		[aDelegate respondsTo:@selector(subprocess:done::)] )
		[aDelegate subprocess:sender done:status :code];
	
	return self;
}

@end