From e2974d79409daf4065918aea345e12afd20d3e9c Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Wed, 11 Apr 2007 19:33:25 +0000 Subject: [PATCH] Monotone-Parent: be3f824ea546882828787185ebfdd086e3742f87 Monotone-Revision: 7ee3b26f338f9e7b5bf19d90524ff4f2fb127611 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-04-11T19:33:25 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 4 ++++ SoObjects/SOGo/NSString+Utilities.h | 4 ++++ SoObjects/SOGo/NSString+Utilities.m | 8 ++++++++ 3 files changed, 16 insertions(+) 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