︙ | | | ︙ | |
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
|
}
+ (Class)class
{
return self;
}
+ (const char*)className
{
return class_getName(self);
}
+ (BOOL)isSubclassOfClass: (Class)class
{
Class iter;
for (iter = self; iter != Nil; iter = class_getSuperclass(iter))
|
|
|
|
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
|
}
+ (Class)class
{
return self;
}
+ (OFString*)className
{
return [OFString stringWithCString: class_getName(self)];
}
+ (BOOL)isSubclassOfClass: (Class)class
{
Class iter;
for (iter = self; iter != Nil; iter = class_getSuperclass(iter))
|
︙ | | | ︙ | |
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
|
return ret;
#endif
}
+ (OFString*)description
{
return [OFString stringWithCString: [self className]];
}
+ (IMP)setImplementation: (IMP)newimp
forClassMethod: (SEL)selector
{
#if defined(OF_OBJFW_RUNTIME)
if (newimp == (IMP)0 || !class_respondsToSelector(self->isa, selector))
|
|
|
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
|
return ret;
#endif
}
+ (OFString*)description
{
return [self className];
}
+ (IMP)setImplementation: (IMP)newimp
forClassMethod: (SEL)selector
{
#if defined(OF_OBJFW_RUNTIME)
if (newimp == (IMP)0 || !class_respondsToSelector(self->isa, selector))
|
︙ | | | ︙ | |
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
|
}
- (Class)class
{
return isa;
}
- (const char*)className
{
#ifdef OF_GNU_RUNTIME
return object_get_class_name(self);
#else
return class_getName(isa);
#endif
}
- (BOOL)isKindOfClass: (Class)class
{
Class iter;
|
|
|
|
|
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
|
}
- (Class)class
{
return isa;
}
- (OFString*)className
{
#ifdef OF_GNU_RUNTIME
return [OFString stringWithCString: object_get_class_name(self)];
#else
return [OFString stringWithCString: class_getName(isa)];
#endif
}
- (BOOL)isKindOfClass: (Class)class
{
Class iter;
|
︙ | | | ︙ | |
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
|
/* Classes containing data should reimplement this! */
return (uint32_t)(uintptr_t)self;
}
- (OFString*)description
{
/* Classes containing data should reimplement this! */
return [OFString stringWithFormat: @"<%s: %p>", [self className], self];
}
- (void)addMemoryToPool: (void*)ptr
{
void **memchunks;
size_t memchunks_size;
|
|
>
|
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
|
/* Classes containing data should reimplement this! */
return (uint32_t)(uintptr_t)self;
}
- (OFString*)description
{
/* Classes containing data should reimplement this! */
return [OFString stringWithFormat: @"<%s: %p>",
[[self className] cString], self];
}
- (void)addMemoryToPool: (void*)ptr
{
void **memchunks;
size_t memchunks_size;
|
︙ | | | ︙ | |