@@ -9,10 +9,11 @@ * the packaging of this file. */ #import "OFObject.h" +@class OFString; @class OFArray; @class OFMutableArray; #define OF_APPLICATION_DELEGATE(cls) \ int \ @@ -40,19 +41,25 @@ /** * \brief Represents the application as an object. */ @interface OFApplication: OFObject { + OFString *progname; OFMutableArray *arguments; id delegate; } /** * \return The only OFApplication instance in the application */ + sharedApplication; +/** + * \return The name of the program (argv[0]) + */ ++ (OFString*)programName; + /** * \return The arguments passed to the application */ + (OFArray*)arguments; @@ -70,10 +77,15 @@ * \param argv The argument values */ - setArgumentCount: (int)argc andArgumentValues: (char**)argv; +/** + * \return The name of the program (argv[0]) + */ +- (OFString*)programName; + /** * \return The arguments passed to the application */ - (OFArray*)arguments;