From 8bae5884d857cb7c762f7859b68d36758c1200ac Mon Sep 17 00:00:00 2001 From: Matthias Benkard Date: Thu, 28 Aug 2008 18:52:47 +0200 Subject: Listener: Evaluate fixnums without crashing. --- MLKListenerController.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'MLKListenerController.m') diff --git a/MLKListenerController.m b/MLKListenerController.m index f472448..ef46ff8 100644 --- a/MLKListenerController.m +++ b/MLKListenerController.m @@ -92,7 +92,7 @@ [NSThread detachNewThreadSelector:@selector(evalObject:) toTarget:self - withObject:object]; + withObject:nullify(object)]; } - (void)evalObject:(id)object @@ -101,6 +101,8 @@ NSDictionary *attrs; NSMutableAttributedString *text = [outputTextView textStorage]; NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; + + object = denullify(object); [statusText setStringValue:@"Compiling and executing."]; NS_DURING -- cgit v1.2.3