@@ -11,11 +11,13 @@ #import "OFObject.h" @class OFString; @class OFArray; +@class OFDictionary; @class OFMutableArray; +@class OFMutableDictionary; #define OF_APPLICATION_DELEGATE(cls) \ int \ main(int argc, char *argv[]) \ { \ @@ -43,16 +45,18 @@ */ @interface OFApplication: OFObject { OFString *programName; OFMutableArray *arguments; + OFMutableDictionary *environment; id delegate; } #ifdef OF_HAVE_PROPERTIES @property (readonly, retain) OFString *programName; @property (readonly, retain) OFArray *arguments; +@property (readonly, retain) OFDictionary *environment; @property (retain) id delegate; #endif /** * \return The only OFApplication instance in the application @@ -67,10 +71,15 @@ /** * \return The arguments passed to the application */ + (OFArray*)arguments; +/** + * \return The environment of the application + */ ++ (OFDictionary*)environment; + /** * Terminates the application. */ + (void)terminate; @@ -100,10 +109,15 @@ /** * \return The arguments passed to the application */ - (OFArray*)arguments; +/** + * \return The environment of the application + */ +- (OFDictionary*)environment; + /** * \return The delegate of the application */ - (id)delegate;