Accepted and commited. I was concerned that this would cause a problem with linking under windows... as it turns out, it's not a problem. ;)
Gregory Casamento -- Principal Consultant - OLC, Inc
# GNUstep Chief Maintainer
From: Wolfgang Lux <wolfgang.lux@gmail.com>
To: DISCUSS GNUstep <discuss-gnustep@gnu.org>
Sent: Sunday, October 19, 2008 5:53:54 PM
Subject: ..., duplicate methods in Gorm fix, ...
GormLib and GormCore both define a few NSObject methods with the
same name. Obviously, such code is rather fragile since it depends
on the order in which the Objective-C runtime system is initialized.
Apparently, this works as intended on Linux, FreeBSD, and probably
other systems. However it does not work on Darwin, where you cannot
edit any connections and the inspectors for a lot other class are
defunct as well. One can fix this on Darwin by swapping the two lines
containing -lGorm and -lGormCore in GNUmakefile.preamble, but of
course this will break things on all other platforms.
The attached patch removes all offending methods from
IBObjectAdditions.m. Of course, the compiler will now complain about
the incomplete implementation of the IBObjectAdditions category, so
probably the remaining methods should moved away and defined
somewhere in GormCore, too.
Wolfgang
P.S.: Here is the exact
list of duplicate methods as determined by
sed'ing the output of the nm command for libGorm.dylib and
libGormCore.dylib.
+[NSObject canSubstituteForClass:]
-[NSObject classInspectorClassName]
-[NSObject connectInspectorClassName]
-[NSObject editorClassName]
-[NSObject helpInspectorClassName]
-[NSObject imageForViewer]
-[NSObject inspectorClassName]
-[NSObject sizeInspectorClassName]