[OGo-GNUstep-Port] exception
Sebastian Reitenbach
gnustep-port@opengroupware.org
Mon, 26 Nov 2007 17:28:39 +0100
------=_=-_OpenGroupware_org_NGMime-31508-1196094519.102322-0------
content-type: text/plain; charset="us-ascii"
content-length: 520
content-transfer-encoding: 7bit
Hi,
while giving the new gnustep-base 1.15.1 a try, and trying to run ogo on it,
there are still the same problems as some months ago.
Nevertheless, at least I figured out a way to get rid of one exception.
Appended patch to sope-appserver/NGObjWeb/WOComponent+Sync.m
fixes the problem, the exception does not happen anymore.
I added an #if GNUSTEP_BASE_LIBRARY around the changes.
Could this patch be reviewed and maybe applied.
shall I create a bugzilla entry and apply the patch there?
kind regards
Sebastian
------=_=-_OpenGroupware_org_NGMime-31508-1196094519.102322-0------
content-length: 964
content-disposition: inline; filename="patch-sope-appserver_NGObjWeb_WOComponent+Sync.m"
content-type: application/octet-stream; name="patch-sope-appserver_NGObjWeb_WOComponent+Sync.m"
content-transfer-encoding: 7bit
--- sope-appserver/NGObjWeb/WOComponent+Sync.m Sat Oct 20 11:01:06 2007
+++ sope-appserver/NGObjWeb/WOComponent+Sync.m.new Mon Nov 26 14:59:05 2007
@@ -80,6 +80,9 @@
CHK_WOCDICT_CACHE;
#if NeXT_RUNTIME
takeValue = (void *)[self methodForSelector:@selector(takeValue:forKey:)];
+#elif GNUSTEP_BASE_LIBRARY
+ takeValue = (void*)method_get_imp(class_get_instance_method(self->isa,
+ @selector(setValue:forKey:)));
#else
takeValue = (void*)method_get_imp(class_get_instance_method(self->isa,
@selector(takeValue:forKey:)));
@@ -117,7 +120,11 @@
// parameter is a string because ObjC doesn't know about bool
// and will evaluate the string as a char value
// (this is common if you use const:mykey="YES" in WOx)
+#if GNUSTEP_BASE_LIBRARY
+ takeValue(self, @selector(setValue:forKey:), value, key);
+#else
takeValue(self, @selector(takeValue:forKey:), value, key);
+#endif
}
}
------=_=-_OpenGroupware_org_NGMime-31508-1196094519.102322-0--------