The Objective-C 2.0 runtime in Leopard expects more methods to be
implemented in root classes than was the case under Tiger.
This commit adds two such methods to the WOLightweightRoot implementation,
doesNotRecognizeSelector: and methodSignatureForSelector:, thus eliminating
a crash that would derail the test run.
Signed-off-by: Wincent Colaiuta <win@wincent.com>
return nil; // never executed, but include this to quell compiler warning
}
+- (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector
+{
+ return nil;
+}
+
+- (void)doesNotRecognizeSelector:(SEL)aSelector
+{
+ [NSException raise:NSInternalInconsistencyException
+ format:@"Unrecognized selector %@", NSStringFromSelector(aSelector)];
+}
+
@end