ObjFW
|
Represents the application as an object. More...
#include <OFApplication.h>
Public Member Functions | |
void | setArgumentCount:andArgumentValues: (int *argc,[andArgumentValues] char **[] argv) |
void | getArgumentCount:andArgumentValues: (int **argc,[andArgumentValues] char ***[] argv) |
OFString * | programName () |
OFArray * | arguments () |
OFDictionary * | environment () |
id< OFApplicationDelegate > | delegate () |
void | setDelegate: (id< OFApplicationDelegate > delegate) |
void | run () |
void | terminate () |
void | terminateWithStatus: (int status) |
Static Public Member Functions | |
id | sharedApplication () |
OFString * | programName () |
OFArray * | arguments () |
OFDictionary * | environment () |
void | terminate () |
void | terminateWithStatus: (int status) |
Protected Attributes | |
OFMutableArray * | arguments |
OFMutableDictionary * | environment |
int * | argc |
char *** | argv |
Properties | |
OFString * | programName |
OFArray * | arguments |
OFDictionary * | environment |
id< OFApplicationDelegate > | delegate |
Represents the application as an object.
OFArray* OFApplication::arguments | ( | ) | [static, virtual] |
OFArray* OFApplication::arguments | ( | ) | [virtual] |
id <OFApplicationDelegate> OFApplication::delegate | ( | ) | [virtual] |
OFDictionary* OFApplication::environment | ( | ) | [static, virtual] |
OFDictionary* OFApplication::environment | ( | ) | [virtual] |
void OFApplication::getArgumentCount:andArgumentValues: | ( | int ** | argc, |
[andArgumentValues] char ***[] | argv | ||
) | [virtual] |
Gets args and argv.o
argc | A pointer where a pointer to argc should be stored |
argv | A pointer where a pointer to argv should be stored |
OFString* OFApplication::programName | ( | ) | [static, virtual] |
OFString* OFApplication::programName | ( | ) | [virtual] |
void OFApplication::run | ( | ) | [virtual] |
Starts the application after everything has been initialized.
void OFApplication::setArgumentCount:andArgumentValues: | ( | int * | argc, |
[andArgumentValues] char **[] | argv | ||
) | [virtual] |
Sets argc and argv.
You should not call this directly! Use of_application_main instead!
argc | The number of arguments |
argv | The argument values |
void OFApplication::setDelegate: | ( | id <OFApplicationDelegate> | delegate | ) | [virtual] |
Sets the delegate of the application.
delegate | The delegate for the application |
id OFApplication::sharedApplication | ( | ) | [static, virtual] |
void OFApplication::terminate | ( | ) | [static, virtual] |
Terminates the application.
void OFApplication::terminate | ( | ) | [virtual] |
Terminates the application.
void OFApplication::terminateWithStatus: | ( | int | status | ) | [static, virtual] |
Terminates the application with the specified status.
status | The status with which the application will terminate |
void OFApplication::terminateWithStatus: | ( | int | status | ) | [virtual] |
Terminates the application with the specified status.
status | The status with which the application will terminate |