Differences From Artifact [f37fb0932b]:
- File src/OFArray.m — part of check-in [0b6fc2523a] at 2009-11-22 15:44:57 on branch trunk — Add -[removeObjectAtIndex] and -[removeNObjects:atIndex:] to OFArray. (user: js, size: 4170) [annotate] [blame] [check-ins using]
To Artifact [4ee8184863]:
- File src/OFArray.m — part of check-in [4d523be264] at 2009-11-26 09:50:12 on branch trunk — Add -[firstItem] to OFDataArray and -[firstObject] to OFArray. (user: js, size: 4275) [annotate] [blame] [check-ins using]
︙ | |||
167 168 169 170 171 172 173 174 175 176 177 178 179 180 | 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 | + + + + + + + | return new; } - (id)objectAtIndex: (size_t)index { return *((OFObject**)[array itemAtIndex: index]); } - (id)firstObject { void *first = [array firstItem]; return (first != NULL ? *((id*)first) : nil); } - (id)lastObject { void *last = [array lastItem]; return (last != NULL ? *((id*)last) : nil); } |
︙ |