Differences From Artifact [83d1b0c935]:
- File src/OFFile.m — part of check-in [79183b7fe9] at 2012-03-17 22:22:41 on branch trunk — Add +[OFFile createDirectoryAtPath:createParents:]. (user: js, size: 18992) [annotate] [blame] [check-ins using] [more...]
To Artifact [69833cd0ab]:
- File
src/OFFile.m
— part of check-in
[b7cf59038a]
at
2012-04-20 13:59:10
on branch trunk
— Set of_std{in,out,err} in OFFileSingleton.
Referencing subclasses of the current class in +[load] sounds like a bad
idea. (user: js, size: 18992) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
157 158 159 160 161 162 163 | [pool release]; } @interface OFFileSingleton: OFFile @end @implementation OFFile | < < < < < < < | 157 158 159 160 161 162 163 164 165 166 167 168 169 170 | [pool release]; } @interface OFFileSingleton: OFFile @end @implementation OFFile #if defined(OF_THREADS) && !defined(_WIN32) + (void)initialize { if (self != [OFFile class]) return; if (!of_mutex_new(&mutex)) |
︙ | ︙ | |||
784 785 786 787 788 789 790 791 792 793 794 795 796 797 | close(fileDescriptor); [super dealloc]; } @end @implementation OFFileSingleton - initWithPath: (OFString*)path mode: (OFString*)mode { Class c = isa; [self release]; @throw [OFNotImplementedException exceptionWithClass: c selector: _cmd]; | > > > > > > > | 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 | close(fileDescriptor); [super dealloc]; } @end @implementation OFFileSingleton + (void)load { of_stdin = [[OFFileSingleton alloc] initWithFileDescriptor: 0]; of_stdout = [[OFFileSingleton alloc] initWithFileDescriptor: 1]; of_stderr = [[OFFileSingleton alloc] initWithFileDescriptor: 2]; } - initWithPath: (OFString*)path mode: (OFString*)mode { Class c = isa; [self release]; @throw [OFNotImplementedException exceptionWithClass: c selector: _cmd]; |
︙ | ︙ |