]> err.no Git - sope/commitdiff
properly convert numbers to strings (#1701)
authorhelge <helge@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Tue, 15 Aug 2006 10:47:26 +0000 (10:47 +0000)
committerhelge <helge@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Tue, 15 Aug 2006 10:47:26 +0000 (10:47 +0000)
git-svn-id: http://svn.opengroupware.org/SOPE/trunk@1337 e4a50df8-12e2-0310-a44c-efbce7f8a7e3

sope-gdl1/GDLAccess/ChangeLog
sope-gdl1/GDLAccess/EOAttribute.m
sope-gdl1/GDLAccess/EOCustomValues.m
sope-gdl1/GDLAccess/Version

index c123ec026796f6fae71b6b8a5005dc2360fdb26b..460ba4931e18a9a5a1b67fa4c959ae43451e73e2 100644 (file)
@@ -1,3 +1,8 @@
+2006-08-15  Helge Hess  <helge.hess@opengroupware.org>
+
+       * EOCustomValues.m: added special support for lF NSTemporaryString
+         to fix OGo bug #1701 (v4.5.58)
+
 2006-07-05  Helge Hess  <helge.hess@opengroupware.org>
 
        * EOAdaptor.m: changed to find SAX drivers on 64bit systems
index 8642041c71809b7079287dfe02cc788f33ca5259..8f7b867d3d30d2fec1eb2f7f863857fca3a6206a 100644 (file)
@@ -255,7 +255,7 @@ static EONull   *null = nil;
   // Check nil/EONull
   if (aValue == nil)
     return nil;
-  if (aValue == [EONull null])
+  if (aValue == null)
     return aValue;
     
     // Check if we need conversion; we use is kind of because 
@@ -288,10 +288,14 @@ static EONull   *null = nil;
       [date setCalendarFormat:format];
       return date;
     }
-        
+    
     // See if we can alloc a new aValue and initilize it
     if ([aClass instancesRespondToSelector:
                 @selector(initWithString:type:)]) {
+      // Note: this is still problematic! Eg NSString instances respond to
+      //       initWithString:type:, but NSTemporaryString doesn't.
+      //       EOCustomValues contains a lF specific for that situation.
+
       return AUTORELEASE([[aClass alloc] 
                                   initWithString:[aValue stringForType:_type]
                                   type:_type]);
index d63d9f4e5be3910e39df72d613ff8f086ee55e94..86dd3b2c37c0878470bbb972b342654f2b128099 100644 (file)
 #import "common.h"
 #import "EOCustomValues.h"
 
+#if LIB_FOUNDATION_LIBRARY
+@implementation NSTemporaryString(EOCustomValues)
+
+- initWithString:(NSString*)string type:(NSString*)type {
+  return [self initWithString:string];
+}
+
+@end
+#endif
+
 @implementation NSString(EOCustomValues)
 
 + stringWithString:(NSString*)string type:(NSString*)type {
index 4096e97f616ffa96e10b45a5b277725b2d0ffbd7..31494853fc6418695cfabaf78b7d27ee87f6e96d 100644 (file)
@@ -1,3 +1,3 @@
 # version file
 
-SUBMINOR_VERSION:=57
+SUBMINOR_VERSION:=58