Differences From Artifact [88c47b37c1]:
- File
src/OFArray.m
— part of check-in
[67bb344ba6]
at
2009-06-30 12:07:21
on branch trunk
— A few renames in OFObject, see details.
* +[conformsTo:] to +[conformsToProtocol:].
* -[isKindOf:] to -[isKindOfClass:].
* -[respondsTo:] to -[respondsToSelector:].
* -[conformsTo:] to -[conformsToProtocol:].
* -[methodFor:] to -[methodForSelector:]. (user: js, size: 3462) [annotate] [blame] [check-ins using]
To Artifact [2201996b2e]:
- File src/OFArray.m — part of check-in [4eae61a78f] at 2009-07-19 14:05:30 on branch trunk — Rename andFoo: to foo: in all methods. (user: js, size: 3455) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
30 31 32 33 34 35 36 | + arrayWithObjects: (OFObject*)first, ... { id ret; va_list args; va_start(args, first); ret = [[[self alloc] initWithObject: first | | | 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | + arrayWithObjects: (OFObject*)first, ... { id ret; va_list args; va_start(args, first); ret = [[[self alloc] initWithObject: first argList: args] autorelease]; va_end(args); return ret; } + arrayWithCArray: (OFObject**)objs { |
︙ | ︙ | |||
83 84 85 86 87 88 89 | - initWithObjects: (OFObject*)first, ... { id ret; va_list args; va_start(args, first); ret = [self initWithObject: first | | | | 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 | - initWithObjects: (OFObject*)first, ... { id ret; va_list args; va_start(args, first); ret = [self initWithObject: first argList: args]; va_end(args); return ret; } - initWithObject: (OFObject*)first argList: (va_list)args { id obj; self = [self init]; @try { [array addItem: &first]; |
︙ | ︙ | |||
217 218 219 220 221 222 223 | [super dealloc]; } - addObject: (OFObject*)obj { @throw [OFNotImplementedException newWithClass: isa | | | | 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 | [super dealloc]; } - addObject: (OFObject*)obj { @throw [OFNotImplementedException newWithClass: isa selector: _cmd]; } - removeNObjects: (size_t)nobjects { @throw [OFNotImplementedException newWithClass: isa selector: _cmd]; } @end |