ProjectManager 0.2
GNUstepAppLauncher Class Reference
Inheritance diagram for GNUstepAppLauncher:
<ProjectModule>

Instance Methods

(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:
 
- Instance Methods inherited from <ProjectModule>
(id) - initWithDocument:infoDictionary:
 Designated initializer of project modules.
 
(void) - finishInit
 Finishes the initialization process of the project module.
 
(ProjectDocument *) - document
 Should return the owner project document to which this project module belongs to.
 
(NSView *) - view
 Instructs the project module to return a view which will be put into the project's window this module becomes the current module.
 
(NSDictionary *) - infoDictionary
 Instructs the project module to return an archivable version of it's data that it wishes to be saved together with the project.
 
(BOOL) - regenerateDerivedFiles
 Sent to the project module when it is to regenerate it's derived files which are generated from other files/data in the project itself.
 
(NSArray *) - moduleMenuItems
 Should return an array of NSMenuItem's which will be put into the module's submenu.
 
(NSArray *) - toolbarItemIdentifiers
 A module should return the default toolbar item identifiers for it's toolbar.
 
(NSToolbarItem *) - toolbarItemForItemIdentifier:
 This method asks the module to create a toolbar item for the provided itemIdentifier.
 
(BOOL) - validateToolbarItem:
 This method is invoked when the project type object is required to validate it's toolbar items.
 

Protected Attributes

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

Additional Inherited Members

- Class Methods inherited from <ProjectModule>
(NSString *) + moduleName
 Should return a unique module identifier name.
 
(NSString *) + humanReadableModuleName
 

Method Documentation

◆ appendStderrMessage:

- (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.

◆ appendStdoutMessage:

- (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.

◆ launch:

- (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.

◆ 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.

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