discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ..., duplicate methods in Gorm fix, ...


From: Gregory John Casamento
Subject: Re: ..., duplicate methods in Gorm fix, ...
Date: Sun, 19 Oct 2008 20:58:14 -0700 (PDT)

I think the correct solution here is a little more involved.   The methods you removed do need to be part of the GormLib library since not every palette will link with GormCore.  On some systems, this is okay, on others (such as Windows) it's not.

I'll take a look to see if there is a better way to approach this.
 
Gregory Casamento -- Principal Consultant - OLC, Inc
# GNUstep Chief Maintainer


----- Original Message ----
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]


__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
reply via email to

[Prev in Thread] Current Thread [Next in Thread]