+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
// 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
[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]);
#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 {