Differences From Artifact [ca5bc2d367]:
- File
src/OFApplication.m
— part of check-in
[fb79b7f369]
at
2013-02-22 12:15:19
on branch trunk
— Print an error when OFApplication is subclassed.
It seems subclassing OFApplication instead of OFObject for the
application delegate is a common mistake. (user: js, size: 9367) [annotate] [blame] [check-ins using]
To Artifact [19e85a0ef2]:
- File
src/OFApplication.m
— part of check-in
[c5ef582958]
at
2013-03-04 17:20:15
on branch trunk
— Replace BOOL with bool.
The only places where BOOL is left are those where they are required by
the ABI. (user: js, size: 9391) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
238 239 240 241 242 243 244 | * expect. */ pool = objc_autoreleasePoolPush(); if ((env = getenv("HOME")) != NULL) { OFString *home = [[[OFString alloc] initWithUTF8StringNoCopy: env | | | | | | | 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 | * expect. */ pool = objc_autoreleasePoolPush(); if ((env = getenv("HOME")) != NULL) { OFString *home = [[[OFString alloc] initWithUTF8StringNoCopy: env freeWhenDone: false] autorelease]; [environment setObject: home forKey: @"HOME"]; } if ((env = getenv("PATH")) != NULL) { OFString *path = [[[OFString alloc] initWithUTF8StringNoCopy: env freeWhenDone: false] autorelease]; [environment setObject: path forKey: @"PATH"]; } if ((env = getenv("SHELL")) != NULL) { OFString *shell = [[[OFString alloc] initWithUTF8StringNoCopy: env freeWhenDone: false] autorelease]; [environment setObject: shell forKey: @"SHELL"]; } if ((env = getenv("TMPDIR")) != NULL) { OFString *tmpdir = [[[OFString alloc] initWithUTF8StringNoCopy: env freeWhenDone: false] autorelease]; [environment setObject: tmpdir forKey: @"TMPDIR"]; } if ((env = getenv("USER")) != NULL) { OFString *user = [[[OFString alloc] initWithUTF8StringNoCopy: env freeWhenDone: false] autorelease]; [environment setObject: user forKey: @"USER"]; } objc_autoreleasePoolPop(pool); #endif |
︙ | ︙ | |||
354 355 356 357 358 359 360 | { *argc = _argc; *argv = _argv; } - (OFString*)programName { | | | | | 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 | { *argc = _argc; *argv = _argv; } - (OFString*)programName { OF_GETTER(_programName, false) } - (OFArray*)arguments { OF_GETTER(_arguments, false) } - (OFDictionary*)environment { OF_GETTER(_environment, false) } - (id <OFApplicationDelegate>)delegate { return _delegate; } |
︙ | ︙ |