Public Member Functions | Static Public Member Functions | Protected Attributes | Properties

OFApplication Class Reference

Represents the application as an object. More...

#import <OFApplication.h>

Inheritance diagram for OFApplication:
OFObject <OFObject>

List of all members.

Public Member Functions

(void) - setArgumentCount:andArgumentValues:
(void) - getArgumentCount:andArgumentValues:
(OFString *) - programName
(OFArray *) - arguments
(OFDictionary *) - environment
(id< OFApplicationDelegate >) - delegate
(void) - setDelegate:
(void) - run
(void) - terminate
(void) - terminateWithStatus:

Static Public Member Functions

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

Protected Attributes

OFMutableArrayarguments
OFMutableDictionaryenvironment
int * argc
char *** argv

Properties

OFStringprogramName
OFArrayarguments
OFDictionaryenvironment
id< OFApplicationDelegatedelegate

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 <OFApplicationDelegate>) delegate  
Returns:
The delegate of the application
+ (OFDictionary*) environment  
Returns:
The environment of the application
- (OFDictionary*) environment  
Returns:
The environment of the application
- (void) getArgumentCount: (int **)  argc
andArgumentValues: (char ***[])  argv 

Gets args and argv.o

Parameters:
argc A pointer where a pointer to argc should be stored
argv A pointer where a pointer to argv should be stored
- (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 <OFApplicationDelegate>)  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