DDCliApplication Class Reference

List of all members.


Detailed Description

A class that represents a command line application.
Examples:

example.m, and simple.m.


Public Member Functions

(NSString *) - name
 Returns the name of this application.
(NSString *) - description
 Returns the name of this application.
(int) - runWithClass:
 Runs a command line application with the specified delegate class, and returns the result.

Static Public Member Functions

(DDCliApplication *) + sharedApplication
 Returns the common shared application.

Member Function Documentation

+ (DDCliApplication *) sharedApplication  

Returns the common shared application.

Returns:
The common shared application

- (NSString *) name  

Returns the name of this application.

Returns:
The name of this application

- (NSString *) description  

Returns the name of this application.

Coupled with the DDCliApp global, this makes it easy to print standard Unix-style error messages:

 ddfprintf(stderr, "%@: An error occured", DDCliApp);

Returns:
The application name

- (int) runWithClass: (Class)  delegateClass  

Runs a command line application with the specified delegate class, and returns the result.

This instantiates an instance of the delegate class, and releases it up completion. Exceptions are trapped, and an error message is printed.

Parameters:
delegateClass The class of the delegate


Generated by  doxygen