ProjectManager  0.2
Public Member Functions | Protected Attributes
GNUstepAppLauncher Class Reference
Inheritance diagram for GNUstepAppLauncher:
<ProjectModule>

List of all members.

Public Member Functions

(void) - appendStdoutMessage:
 Appends a message to the stdout log of the receiver.
(void) - appendStderrMessage:
 Appends a message to the stderr log of the receiver.
(void) - launch:
 Action invoked by the `Launch' button when the app is to be launched.
(void) - proceedWithLaunch:
 Proceeds with launching if the sender sets so using the `flag' argument.
(void) - kill:
 Action invoked by the `Launch' button when the app is to be killed.
(void) - stopLaunch:
 Action invoked by the `Launch' button when delayed launching of the app is to be stopped.
(void) - chooseWorkingDirectory:
 Action invoked by the `Choose...' button in the `Working Directory' box.
(void) - showArguments:
 Action which opens up the receiver's arguments panel.
(void) - showEnvironment:
 Action which opens up the receiver's environment variables panel.
(void) - writeStdin:
 Action invoked when the user enter something into the `Standard Input' text field and hits 'Return'.
(void) - addArg:
 Action to add an argument to the argument list.
(void) - removeArg:
 Action to remove the selected argument from the argument list.
(void) - moveArgUp:
 Action to move the selected argument upwards in the list of arguments.
(void) - moveArgDown:
 Action to move the selected argument downwards in the list of arguments.
(void) - addEnv:
 Action to add an environment variable.
(void) - removeEnv:
 Action to remove an environment variable.
(void) - moduleChanged:
(void) - taskTerminated
 Notification method invoked when the task terminates itself.
(void) - readStdout
 Notification method invoked when we collect the subprocess' stdout.
(void) - readStderr
 Notification method invoked when we collect the subprocess' stderr.
(int) - numberOfRowsInTableView:
(id) - tableView:objectValueForTableColumn:row:
(void) - tableView:setObjectValue:forTableColumn:row:

Protected Attributes

ProjectDocumentdocument
id bogusWindow
id view
id stderr
id stdout
id stdin
id workingDirectory
id workingDirectoryButton
id targets
NSStringtarget
id args
id env
id argsPanel
id envPanel
BOOL argsPanelWasOpen
BOOL envPanelWasOpen
NSMutableArray * arguments
NSMutableDictionary * environment
NSArraysortedEnvironmentNames
NSTask * task
NSFileHandle * stdinHandle
NSFileHandle * stdoutHandle
NSFileHandle * stderrHandle
id< GNUstepAppLauncherDelegatedelegate
GNUstepAppLauncherState launcherState

Member Function Documentation

- (void) appendStderrMessage: (NSString *)  aMessage

Appends a message to the stderr log of the receiver.

After the message is appended the log is scrolled to it's end.

Parameters:
aMessageThe message to append.

Referenced by readStderr.

- (void) appendStdoutMessage: (NSString *)  aMessage

Appends a message to the stdout log of the receiver.

After the message is appended the log is scrolled to it's end.

Parameters:
aMessageThe message to append.

Referenced by readStdout.

- (void) launch: (id)  sender

Action invoked by the `Launch' button when the app is to be launched.

This method asks the delegate whether the receiver should delay launching, and if the delegate answers NO, it immediatelly invokes -[self proceedWithLaunch: YES], otherwise the method sets up the user interface to allow stopping the delayed launch.

References ProjectDocument::logMessage:, and proceedWithLaunch:.

- (void) proceedWithLaunch: (BOOL)  flag

Proceeds with launching if the sender sets so using the `flag' argument.

The launch is separated into two stages - preparation (from the -launch: method) and actual launching (performed by this method). This allows the delegate of the receiver to perform any additional processing before the actual launch (such as building the project if necessary). In case the delegate delayed the launch, it must afterwards, at some point, invoke this method to finalize the launch process.

Parameters:
flagA flag which tells the receiver whether to proceed with the launch or to abort. Passing YES contines the launch, NO aborts it.

Referenced by launch:.


The documentation for this class was generated from the following files: