OFApplication Class Reference

Represents the application as an object. More...

#import <OFApplication.h>

Inheritance diagram for OFApplication:
OFObject

List of all members.

Public Member Functions

(void) - setArgumentCount:andArgumentValues:
(OFString *) - programName
(OFArray *) - arguments
(id) - delegate
(void) - setDelegate:
(void) - run
(void) - terminate
(void) - terminateWithStatus:

Static Public Member Functions

(id) + sharedApplication
(OFString *) + programName
(OFArray *) + arguments
(void) + terminate
(void) + terminateWithStatus:

Protected Attributes

OFStringprogramName
OFMutableArrayarguments
id delegate

Detailed Description

Represents the application as an object.


Member Function Documentation

- (OFArray*) arguments  
Returns:
The arguments passed to the application
+ (OFArray*) arguments  
Returns:
The arguments passed to the application
- (id) delegate  
Returns:
The delegate of the application
- (OFString*) programName  
Returns:
The name of the program (argv[0])
+ (OFString*) programName  
Returns:
The name of the program (argv[0])
- (void) run  

Starts the application after everything has been initialized.

- (void) setArgumentCount: (int)  argc
andArgumentValues: (char**)  argv 

Sets argc and argv.

You should not call this directly! Use of_application_main instead!

Parameters:
argc The number of arguments
argv The argument values
- (void) setDelegate: (id)  delegate  

Sets the delegate of the application.

Parameters:
delegate The delegate for the application
+ (id) sharedApplication  
Returns:
The only OFApplication instance in the application
- (void) terminate  

Terminates the application.

+ (void) terminate  

Terminates the application.

- (void) terminateWithStatus: (int)  status  

Terminates the application with the specified status.

Parameters:
status The status with which the application will terminate
+ (void) terminateWithStatus: (int)  status  

Terminates the application with the specified status.

Parameters:
status The status with which the application will terminate

The documentation for this class was generated from the following files:
 All Classes Functions Variables
Generated on Sun May 9 16:52:21 2010 for ObjFW by  doxygen 1.6.3