@@ -14,10 +14,12 @@ * file. */ #import "OFObject.h" +OF_ASSUME_NONNULL_BEGIN + @class OFString; #ifndef DOXYGEN @class OFArray OF_GENERIC(ObjectType); @class OFDictionary OF_GENERIC(KeyType, ObjectType); @class OFMutableArray OF_GENERIC(ObjectType); @@ -131,11 +133,11 @@ #ifdef OF_HAVE_PROPERTIES @property (readonly, copy, nonatomic) OFString *programName; @property (readonly, copy, nonatomic) OFArray OF_GENERIC(OFString*) *arguments; @property (readonly, copy, nonatomic) OFDictionary OF_GENERIC(OFString*, OFString*) *environment; -@property (assign) id delegate; +@property (assign, nullable) id delegate; #endif /*! * @brief Returns the only OFApplication instance in the application. * @@ -180,12 +182,12 @@ * @brief Gets args and argv. * * @param argc A pointer where a pointer to argc should be stored * @param argv A pointer where a pointer to argv should be stored */ -- (void)getArgumentCount: (int**)argc - andArgumentValues: (char***[])argv; +- (void)getArgumentCount: (__nonnull int **__nonnull)argc + andArgumentValues: (__nonnull char **__nonnull *__nonnull[])argv; /*! * @brief Returns the name of the program (argv[0]). * * @return The name of the program (argv[0]) @@ -209,18 +211,18 @@ /*! * @brief Returns the delegate of the application. * * @return The delegate of the application */ -- (id )delegate; +- (nullable id )delegate; /*! * @brief Sets the delegate of the application. * * @param delegate The delegate for the application */ -- (void)setDelegate: (id )delegate; +- (void)setDelegate: (nullable id )delegate; /*! * @brief Terminates the application. */ - (void)terminate OF_NO_RETURN; @@ -237,9 +239,12 @@ @end #ifdef __cplusplus extern "C" { #endif -extern int of_application_main(int*, char**[], Class); +extern int of_application_main(__nonnull int*, __nonnull char **__nonnull[], + Class); #ifdef __cplusplus } #endif + +OF_ASSUME_NONNULL_END