Differences From Artifact [c960316ed3]:
- File
src/OFApplication.h
— part of check-in
[e2b06423e0]
at
2010-09-05 23:19:08
on branch trunk
— Replace OFObject* with id in many places.
We assume now that every object understands retain, release, etc. so
that we can weaken the type from OFObject* to id. This makes it
possible to use different root object classes. (user: js, size: 3194) [annotate] [blame] [check-ins using]
To Artifact [53d78093d3]:
- File
src/OFApplication.h
— part of check-in
[f282aaa672]
at
2010-10-10 12:01:52
on branch trunk
— Better storing of argc and argv.
This makes it possible to pass argc and argv to third party libs
requiring those. (user: js, size: 3471) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
45 46 47 48 49 50 51 52 53 54 55 56 57 58 | */ @interface OFApplication: OFObject { OFString *programName; OFMutableArray *arguments; OFMutableDictionary *environment; id <OFApplicationDelegate> delegate; } #ifdef OF_HAVE_PROPERTIES @property (readonly, retain) OFString *programName; @property (readonly, retain) OFArray *arguments; @property (readonly, retain) OFDictionary *environment; @property (retain) id <OFApplicationDelegate> delegate; | > > | 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | */ @interface OFApplication: OFObject { OFString *programName; OFMutableArray *arguments; OFMutableDictionary *environment; id <OFApplicationDelegate> delegate; int *argc; char ***argv; } #ifdef OF_HAVE_PROPERTIES @property (readonly, retain) OFString *programName; @property (readonly, retain) OFArray *arguments; @property (readonly, retain) OFDictionary *environment; @property (retain) id <OFApplicationDelegate> delegate; |
︙ | ︙ | |||
94 95 96 97 98 99 100 | * Sets argc and argv. * * You should not call this directly! Use of_application_main instead! * * \param argc The number of arguments * \param argv The argument values */ | | | > > > > > > > > > | 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 | * Sets argc and argv. * * You should not call this directly! Use of_application_main instead! * * \param argc The number of arguments * \param argv The argument values */ - (void)setArgumentCount: (int*)argc andArgumentValues: (char***)argv; /** * Gets args and argv.o * * \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; /** * \return The name of the program (argv[0]) */ - (OFString*)programName; /** |
︙ | ︙ |