diff --git a/ChangeLog b/ChangeLog index c1e8800e3..52bfa810f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2007-04-11 Wolfgang Sourdeau + * SoObjects/SOGo/NSString+Utilities.m ([NSString -boolValue]): new + method that SOGo will need with non-gnustep Foundation + implementation. + * SoObjects/SOGo/SOGoUser.m ([SOGoUser -timeZone]): method moved from SOGoObject.m. diff --git a/SoObjects/SOGo/NSString+Utilities.h b/SoObjects/SOGo/NSString+Utilities.h index 285c3296b..04d4872e8 100644 --- a/SoObjects/SOGo/NSString+Utilities.h +++ b/SoObjects/SOGo/NSString+Utilities.h @@ -38,6 +38,10 @@ - (NSString *) davMethodToObjC; +#ifndef GNUSTEP +- (BOOL) boolValue; +#endif + @end #endif /* NSSTRING_URL_H */ diff --git a/SoObjects/SOGo/NSString+Utilities.m b/SoObjects/SOGo/NSString+Utilities.m index 77c4e4584..f96f60fb5 100644 --- a/SoObjects/SOGo/NSString+Utilities.m +++ b/SoObjects/SOGo/NSString+Utilities.m @@ -100,4 +100,12 @@ return newName; } +#ifndef GNUSTEP +- (BOOL) boolValue +{ + return !([self isEqualToString: @"0"] + || [self isEqualToString: @"NO"]); +} +#endif + @end