Overview
| Comment: | Add +[superclass] to OFObject. |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
047af7a8ad5d11c0b233cfcfd9728a56 |
| User & Date: | js on 2010-02-07 14:09:05 |
| Other Links: | manifest | tags |
Context
|
2010-02-07
| ||
| 14:15 | Reduce #ifdefs in OFObject.m. (check-in: 623c89300a user: js tags: trunk) | |
| 14:09 | Add +[superclass] to OFObject. (check-in: 047af7a8ad user: js tags: trunk) | |
| 12:40 | Add +[arrayWithCArray:length:] to OFArray. (check-in: bf310bcc5d user: js tags: trunk) | |
Changes
Modified src/OFObject.h from [9367c723f3] to [e2a29ab486].
| ︙ | ︙ | |||
78 79 80 81 82 83 84 85 86 87 88 89 90 91 | /** * \param class_ The class which is checked for being a superclass * \return A boolean whether the class class is a subclass of the specified * class */ + (BOOL)isSubclassOfClass: (Class)class_; /** * Checks whether instances of the class respond to a given selector. * * \param selector The selector which should be checked for respondance * \return A boolean whether instances of the class respond to the specified * selector */ | > > > > > | 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 | /** * \param class_ The class which is checked for being a superclass * \return A boolean whether the class class is a subclass of the specified * class */ + (BOOL)isSubclassOfClass: (Class)class_; /** * \return The superclass of the class */ + (Class)superclass; /** * Checks whether instances of the class respond to a given selector. * * \param selector The selector which should be checked for respondance * \return A boolean whether instances of the class respond to the specified * selector */ |
| ︙ | ︙ |
Modified src/OFObject.m from [a529b1aaf1] to [eeb1a8282b].
| ︙ | ︙ | |||
158 159 160 161 162 163 164 165 166 167 168 169 170 171 |
for (iter = self; iter != Nil; iter = class_get_super_class(iter))
#endif
if (iter == class)
return YES;
return NO;
}
+ (BOOL)instancesRespondToSelector: (SEL)selector
{
#ifdef OF_APPLE_RUNTIME
return class_respondsToSelector(self, selector);
#else
return class_get_instance_method(self, selector) != METHOD_NULL;
| > > > > > > > > > | 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 |
for (iter = self; iter != Nil; iter = class_get_super_class(iter))
#endif
if (iter == class)
return YES;
return NO;
}
+ (Class)superclass
{
#ifdef OF_APPLE_RUNTIME
return class_getSuperclass(self);
#else
return class_get_super_class(self);
#endif
}
+ (BOOL)instancesRespondToSelector: (SEL)selector
{
#ifdef OF_APPLE_RUNTIME
return class_respondsToSelector(self, selector);
#else
return class_get_instance_method(self, selector) != METHOD_NULL;
|
| ︙ | ︙ |