ObjFW  Diff

Differences From Artifact [2f26626383]:

To Artifact [ce51a82a57]:

  • File src/OFApplication.h — part of check-in [0a73af49f0] at 2017-04-30 13:35:16 on branch trunk — Use nonatomic for properties and clean up

    This changes retaining behavior, meaning properties are not returned
    retained and autoreleased anymore, so a property returned from a getter
    now needs to be manually retained and autoreleased before calling the
    setter. However, this is rarely the case and not using atomic improves
    performance. (user: js, size: 7084) [annotate] [blame] [check-ins using]


132
133
134
135
136
137
138
139

140
141
142
143
144

145
146
147
148
149

150
151
152
153
154
155
156
132
133
134
135
136
137
138

139
140
141
142
143

144
145
146
147
148

149
150
151
152
153
154
155
156







-
+




-
+




-
+







	void (*_SIGUSR2Handler)(id, SEL);
#endif
}

/*!
 * The name of the program (argv[0]).
 */
@property (readonly, assign) OFString *programName;
@property (readonly, nonatomic) OFString *programName;

/*!
 * The arguments passed to the application.
 */
@property (readonly, assign) OFArray OF_GENERIC(OFString*) *arguments;
@property (readonly, nonatomic) OFArray OF_GENERIC(OFString*) *arguments;

/*!
 * The environment of the application.
 */
@property (readonly, assign)
@property (readonly, nonatomic)
    OFDictionary OF_GENERIC(OFString*, OFString*) *environment;

/*!
 * @brief Returns the only OFApplication instance in the application.
 *
 * @return The only OFApplication instance in the application
 */