Overview
| Comment: | Never throw in -[typeEncodingForSelector:]. |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
77573bf01fea4cd9706db8cde904eee8 |
| User & Date: | js on 2012-12-22 14:41:18 |
| Other Links: | manifest | tags |
Context
|
2012-12-22
| ||
| 15:37 | Add -[doesNotRecognizeSelector:]. (check-in: 917ce5754c user: js tags: trunk) | |
| 14:41 | Never throw in -[typeEncodingForSelector:]. (check-in: 77573bf01f user: js tags: trunk) | |
|
2012-12-20
| ||
| 16:42 | Remove dummy implementations for formal protocols. (check-in: 89177dcd09 user: js tags: trunk) | |
Changes
Modified src/OFObject.m from [5c04a02683] to [9c302a662d].
| ︙ | ︙ | |||
355 356 357 358 359 360 361 |
{
return class_getMethodImplementation(self, selector);
}
+ (const char*)typeEncodingForInstanceSelector: (SEL)selector
{
#if defined(OF_OBJFW_RUNTIME)
| < < | < < < < < | | < < | | 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 |
{
return class_getMethodImplementation(self, selector);
}
+ (const char*)typeEncodingForInstanceSelector: (SEL)selector
{
#if defined(OF_OBJFW_RUNTIME)
return objc_get_type_encoding(self, selector);
#else
Method m;
if ((m = class_getInstanceMethod(self, selector)) == NULL)
return NULL;
return method_getTypeEncoding(m);
#endif
}
+ (OFString*)description
{
return [self className];
}
|
| ︙ | ︙ | |||
808 809 810 811 812 813 814 |
objc_autoreleasePoolPop(pool);
}
- (const char*)typeEncodingForSelector: (SEL)selector
{
#if defined(OF_OBJFW_RUNTIME)
| < < | < < < < < < < | < < < > | | 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 |
objc_autoreleasePoolPop(pool);
}
- (const char*)typeEncodingForSelector: (SEL)selector
{
#if defined(OF_OBJFW_RUNTIME)
return objc_get_type_encoding(object_getClass(self), selector);
#else
Method m;
if ((m = class_getInstanceMethod(object_getClass(self),
selector)) == NULL)
return NULL;
return method_getTypeEncoding(m);
#endif
}
- (BOOL)isEqual: (id)object
{
/* Classes containing data should reimplement this! */
return (self == object);
|
| ︙ | ︙ |