diff --git a/ChangeLog b/ChangeLog index 35709b496..1a7c6cab0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-05-31 Fred Kiefer + + * Source/NSApplication.m (detachDrawingThread:toTarget:withObject:): + Replace a call to a now longer existing extension on NSInvocation + with the correct method calls. + 2009-05-31 Fred Kiefer * Source/GSDisplayServer.m (+initialize, diff --git a/Source/NSApplication.m b/Source/NSApplication.m index a0ac4aa5d..e138a0874 100644 --- a/Source/NSApplication.m +++ b/Source/NSApplication.m @@ -736,9 +736,12 @@ static NSSize scaledIconSizeForSize(NSSize imageSize) { NSInvocation *inv; - // This uses a GNUstep extension on NSInvocation - inv = [[NSInvocation alloc] initWithTarget: target - selector: selector, argument]; + inv = [[NSInvocation alloc] + invocationWithMethodSignature: + [target methodSignatureForSelector: selector]]; + [inv setTarget: target]; + [inv setSelector: selector]; + [inv setArgument: argument atIndex: 2]; [NSThread detachNewThreadSelector: @selector(_invokeWithAutoreleasePool:) toTarget: self withObject: inv];