From bdca2254cc95a956484de93b5a628734fb31d6ab Mon Sep 17 00:00:00 2001 From: fredkiefer Date: Sun, 31 May 2009 15:48:49 +0000 Subject: [PATCH] Replace a call to a now longer existing extension on NSInvocation with the correct method calls. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28312 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 6 ++++++ Source/NSApplication.m | 9 ++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) 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];