Fix test-time crashes caused by 10.5 runtime changes
authorWincent Colaiuta <win@wincent.com>
Tue, 27 Nov 2007 22:27:33 +0000 (23:27 +0100)
committerWincent Colaiuta <win@wincent.com>
Tue, 27 Nov 2007 22:27:33 +0000 (23:27 +0100)
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>
WOLightweightRoot.m

index a29c79961da3699e0d7f9e430b1805590da8b651..13b5d9b26492826daf4b8552eed378ca7f7cc6cb 100644 (file)
     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