206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
|
if (key == nil || object == nil)
@throw [OFInvalidArgumentException
exceptionWithClass: [self class]];
return [self initWithKeysAndObjects: key, object, nil];
}
- initWithObjects: (OFArray*)objects
forKeys: (OFArray*)keys
{
Class c = [self class];
[self release];
@throw [OFNotImplementedException exceptionWithClass: c
selector: _cmd];
}
- initWithObjects: (id const*)objects
forKeys: (id const*)keys
count: (size_t)count
{
Class c = [self class];
|
|
|
>
>
>
>
>
>
>
>
|
>
>
>
>
|
|
>
|
>
>
>
|
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
|
if (key == nil || object == nil)
@throw [OFInvalidArgumentException
exceptionWithClass: [self class]];
return [self initWithKeysAndObjects: key, object, nil];
}
- initWithObjects: (OFArray*)objects_
forKeys: (OFArray*)keys_
{
id *objects, *keys;
size_t count;
@try {
count = [objects_ count];
if (count != [keys_ count])
@throw [OFInvalidArgumentException
exceptionWithClass: [self class]];
objects = [objects_ objects];
keys = [keys_ objects];
} @catch (id e) {
[self release];
@throw e;
}
return [self initWithObjects: objects
forKeys: keys
count: count];
}
- initWithObjects: (id const*)objects
forKeys: (id const*)keys
count: (size_t)count
{
Class c = [self class];
|