218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
|
{
return false;
}
- (OFData *)extendedAttributeDataForName: (OFString *)name
ofItemAtIRI: (OFIRI *)IRI
{
OF_UNRECOGNIZED_SELECTOR
}
- (void)setExtendedAttributeData: (OFData *)data
forName: (OFString *)name
ofItemAtIRI: (OFIRI *)IRI
{
OF_UNRECOGNIZED_SELECTOR
}
- (void)removeExtendedAttributeForName: (OFString *)name
ofItemAtIRI: (OFIRI *)IRI
{
OF_UNRECOGNIZED_SELECTOR
}
@end
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
|
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
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
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
|
{
return false;
}
- (OFData *)extendedAttributeDataForName: (OFString *)name
ofItemAtIRI: (OFIRI *)IRI
{
OFData *data;
[self getExtendedAttributeData: &data
andType: NULL
forName: name
ofItemAtIRI: IRI];
return data;
}
- (void)getExtendedAttributeData: (OFData **)data
andType: (id *)type
forName: (OFString *)name
ofItemAtIRI: (OFIRI *)IRI
{
/*
* Only call into -[extendedAttributeDataForName:ofItemAtIRI:] if it
* has been overridden. This is to be backwards-compatible to
* subclasses that predate the introduction of
* -[getExtendedAttributeData:andType:forName:ofItemAtIRI:].
* Without this check, this would result in an infinite loop.
*/
SEL selector = @selector(extendedAttributeDataForName:ofItemAtIRI:);
if (class_getMethodImplementation(object_getClass(self), selector) !=
class_getMethodImplementation([OFIRIHandler class], selector)) {
/*
* Use -[performSelector:withObject:withObject:] to avoid
* deprecation warning. This entire thing is purely for
* backwards compatibility.
*/
*data = [self performSelector: selector
withObject: name
withObject: IRI];
if (type != NULL)
*type = nil;
return;
}
OF_UNRECOGNIZED_SELECTOR
}
- (void)setExtendedAttributeData: (OFData *)data
forName: (OFString *)name
ofItemAtIRI: (OFIRI *)IRI
{
[self setExtendedAttributeData: data
andType: nil
forName: name
ofItemAtIRI: IRI];
}
- (void)setExtendedAttributeData: (OFData *)data
andType: (id)type
forName: (OFString *)name
ofItemAtIRI: (OFIRI *)IRI
{
if (type == nil) {
/*
* Only call into
* -[setExtendedAttributeData:forName:ofItemAtIRI:] if it has
* been overridden. This is to be backwards-compatible to
* subclasses that predate the introduction of
* -[setExtendedAttributeData:andType:forName:ofItemAtIRI:].
* Without this check, this would result in an infinite loop.
*/
SEL selector =
@selector(setExtendedAttributeData:forName:ofItemAtIRI:);
if (class_getMethodImplementation(object_getClass(self),
selector) !=
class_getMethodImplementation([OFIRIHandler class],
selector)) {
/*
* Use
* -[performSelector:withObject:withObject:withObject:]
* to avoid deprecation warning. This entire thing is
* purely for backwards compatibility.
*/
[self performSelector: selector
withObject: data
withObject: name
withObject: IRI];
return;
}
}
OF_UNRECOGNIZED_SELECTOR
}
- (void)removeExtendedAttributeForName: (OFString *)name
ofItemAtIRI: (OFIRI *)IRI
{
OF_UNRECOGNIZED_SELECTOR
}
@end
|