19 OF_ASSUME_NONNULL_BEGIN
23 @class OFArray OF_GENERIC(ObjectType);
29 #define OF_APPLICATION_DELEGATE(cls) \
31 main(int argc, char *argv[]) \
33 return of_application_main(&argc, &argv, [cls class]); \
48 #ifdef OF_HAVE_OPTIONAL_PROTOCOLS
124 id <OFApplicationDelegate> _delegate;
125 void (*_SIGINTHandler)(id, SEL);
127 void (*_SIGHUPHandler)(id, SEL);
128 void (*_SIGUSR1Handler)(id, SEL);
129 void (*_SIGUSR2Handler)(id, SEL);
133 #ifdef OF_HAVE_PROPERTIES
134 @property (readonly, copy, nonatomic)
OFString *programName;
135 @property (readonly, copy, nonatomic)
OFArray OF_GENERIC(
OFString*) *arguments;
136 @property (readonly, copy, nonatomic)
172 + (void)terminate OF_NO_RETURN;
179 + (void)terminateWithStatus: (
int)status OF_NO_RETURN;
187 - (void)getArgumentCount: (
int *OF_NONNULL *OF_NONNULL)argc
188 andArgumentValues: (
char *OF_NONNULL *OF_NONNULL *OF_NONNULL[])argv;
228 - (void)terminate OF_NO_RETURN;
235 - (void)terminateWithStatus: (
int)status OF_NO_RETURN;
244 extern int of_application_main(
int *OF_NONNULL,
char *OF_NONNULL *OF_NONNULL[],
250 OF_ASSUME_NONNULL_END
void applicationDidReceiveSIGUSR2()
A method which is called when the application received a SIGUSR2.
An abstract class for storing objects in an array.
Definition: OFArray.h:95
void applicationDidFinishLaunching()
A method which is called when the application was initialized and is running now. ...
void applicationDidReceiveSIGHUP()
A method which is called when the application received a SIGHUP.
The root class for all other classes inside ObjFW.
Definition: OFObject.h:364
An abstract class for storing, adding and removing objects in an array.
Definition: OFMutableArray.h:46
void applicationWillTerminate()
A method which is called when the application will terminate.
A class for handling strings.
Definition: OFString.h:91
void applicationDidReceiveSIGINT()
A method which is called when the application received a SIGINT.
An abstract class for storing objects in a dictionary.
Definition: OFDictionary.h:61
An abstract class for storing and changing objects in a dictionary.
Definition: OFMutableDictionary.h:47
A protocol for delegates of OFApplication.
Definition: OFApplication.h:41
A class which represents the application as an object.
Definition: OFApplication.h:116
void applicationDidReceiveSIGUSR1()
A method which is called when the application received a SIGUSR1.