25 #define OF_APPLICATION_DELEGATE(cls) \
27 main(int argc, char *argv[]) \
29 return of_application_main(&argc, &argv, [cls class]); \
35 #ifndef OF_APPLICATION_M
46 #ifdef OF_HAVE_OPTIONAL_PROTOCOLS
114 id <OFApplicationDelegate>
delegate;
115 void (*SIGINTHandler)(id, SEL);
117 void (*SIGHUPHandler)(id, SEL);
118 void (*SIGUSR1Handler)(id, SEL);
119 void (*SIGUSR2Handler)(id, SEL);
123 #ifdef OF_HAVE_PROPERTIES
124 @property (readonly, copy, nonatomic)
OFString *programName;
125 @property (readonly, copy, nonatomic)
OFArray *arguments;
126 @property (readonly, copy, nonatomic)
OFDictionary *environment;
127 @property (assign) id <OFApplicationDelegate> delegate;
168 + (void)terminateWithStatus: (
int)status;
178 - (void)setArgumentCount: (
int*)argc
179 andArgumentValues: (
char**[])argv;
187 - (void)getArgumentCount: (
int**)argc
188 andArgumentValues: (
char***[])argv;
242 - (void)terminateWithStatus: (
int)status;
251 extern int of_application_main(
int*,
char**[], Class);