25 OF_ASSUME_NONNULL_BEGIN
29 @class OFArray OF_GENERIC(ObjectType);
71 #define OF_APPLICATION_DELEGATE(class_) \ 73 main(int argc, char *argv[]) \ 75 return OFApplicationMain(&argc, &argv, \ 76 (class_ *)[[class_ alloc] init]); \ 80 # define OF_HAVE_SANDBOX 98 - (void)applicationDidFinishLaunching: (
OFNotification *)notification;
117 - (void)applicationDidReceiveSIGINT;
130 - (void)applicationDidReceiveSIGHUP;
144 - (void)applicationDidReceiveSIGUSR1;
158 - (void)applicationDidReceiveSIGUSR2;
175 OF_SUBCLASSING_RESTRICTED
183 id <OFApplicationDelegate> _Nullable _delegate;
184 void (*_Nullable _SIGINTHandler)(id,
SEL);
186 void (*_Nullable _SIGHUPHandler)(id,
SEL);
187 void (*_Nullable _SIGUSR1Handler)(id,
SEL);
188 void (*_Nullable _SIGUSR2Handler)(id,
SEL);
190 #ifdef OF_HAVE_SANDBOX 191 OFSandbox *_Nullable _activeSandbox;
192 OFSandbox *_Nullable _activeSandboxForChildProcesses;
196 #ifdef OF_HAVE_CLASS_PROPERTIES 197 @property (
class, readonly, nullable, nonatomic)
199 @property (
class, readonly, nullable, nonatomic)
OFString *programName;
200 @property (
class, readonly, nullable, nonatomic)
202 @property (
class, readonly, nullable, nonatomic)
209 @property (readonly, nonatomic)
OFString *programName;
219 @property (readonly, nonatomic)
225 @property OF_NULLABLE_PROPERTY (assign, nonatomic)
228 #ifdef OF_HAVE_SANDBOX 229 @property OF_NULLABLE_PROPERTY (readonly, nonatomic) OFSandbox *activeSandbox;
230 @property OF_NULLABLE_PROPERTY (readonly, nonatomic)
231 OFSandbox *activeSandboxForChildProcesses;
265 + (void)terminate OF_NO_RETURN;
272 + (void)terminateWithStatus: (
int)status OF_NO_RETURN;
274 #ifdef OF_HAVE_SANDBOX 275 + (void)of_activateSandbox: (OFSandbox *)sandbox;
276 + (void)of_activateSandboxForChildProcesses: (OFSandbox *)sandbox;
279 - (instancetype)init OF_UNAVAILABLE;
287 - (void)getArgumentCount: (
int *_Nonnull *_Nonnull)argc
288 andArgumentValues: (
char *_Nullable *_Nonnull *_Nonnull[_Nonnull])argv;
293 - (void)terminate OF_NO_RETURN;
300 - (void)terminateWithStatus: (
int)status OF_NO_RETURN;
302 #ifdef OF_HAVE_SANDBOX 303 - (void)of_activateSandbox: (OFSandbox *)sandbox;
304 - (void)of_activateSandboxForChildProcesses: (OFSandbox *)sandbox;
311 extern int OFApplicationMain(
int *_Nonnull,
char *_Nullable *_Nonnull[_Nonnull],
312 id <OFApplicationDelegate>);
317 OF_ASSUME_NONNULL_END
const struct objc_selector * SEL
A selector.
Definition: ObjFWRT.h:102
An abstract class for storing objects in an array.
Definition: OFArray.h:107
A class to represent a notification for or from OFNotificationCenter.
Definition: OFNotification.h:40
A class for storing constant strings using the @"" literal.
Definition: OFConstantString.h:41
The root class for all other classes inside ObjFW.
Definition: OFObject.h:690
An abstract class for storing, adding and removing objects in an array.
Definition: OFMutableArray.h:47
const OFNotificationName OFApplicationWillTerminateNotification
A notification that will be sent when the application will terminate.
Definition: OFApplication.m:96
const OFNotificationName OFApplicationDidFinishLaunchingNotification
A notification that will be sent when the application did finish launching.
Definition: OFApplication.m:94
A class for handling strings.
Definition: OFString.h:138
An abstract class for storing objects in a dictionary.
Definition: OFDictionary.h:82
An abstract class for storing and changing objects in a dictionary.
Definition: OFMutableDictionary.h:46
A protocol for delegates of OFApplication.
A class which represents the application as an object.
Definition: OFApplication.h:176