]> err.no Git - sope/commitdiff
added -hasPrefix:/-hasSuffix: to NSNull
authorhelge <helge@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Wed, 23 Feb 2005 18:18:24 +0000 (18:18 +0000)
committerhelge <helge@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Wed, 23 Feb 2005 18:18:24 +0000 (18:18 +0000)
git-svn-id: http://svn.opengroupware.org/SOPE/trunk@592 e4a50df8-12e2-0310-a44c-efbce7f8a7e3

sope-core/NGExtensions/ChangeLog
sope-core/NGExtensions/FdExt.subproj/NSNull+misc.m
sope-core/NGExtensions/Version

index 3d86def56252f273cd17fa903cea815821c627a2..b7472a9fb6939722a7ef7aa2a21d6639a663ee48 100644 (file)
@@ -1,3 +1,8 @@
+2005-02-23  Helge Hess  <helge.hess@opengroupware.org>
+
+       * FdExt.subproj/NSNull+misc.m: added -hasPrefix: / -hasSuffix:, should
+         fix OGo bug #1080 (v4.5.152)
+
 2005-02-21  Helge Hess  <helge.hess@opengroupware.org>
 
        * FdExt.subproj/NSString+URLEscaping.m: changed to escape '+' chars
index 63e2a92e93e3192c957b7d32735fd00146c5c794..f74b968b9c19d2d161a7ce4a411f97f858127944 100644 (file)
@@ -95,12 +95,15 @@ static inline BOOL doAbort(void) {
 }
 
 - (BOOL)isEqualToString:(NSString *)_s {
-#if DEBUG
-  NSLog(@"WARNING(%s): "
-        @"called NSNull -isEqualToString:!!!",
-        __PRETTY_FUNCTION__);
-  if (doAbort()) abort();
-#endif
+  /* Note: I think we can keep this as a regular method */
+  return _s == (id)self || _s == nil ? YES : NO;
+}
+- (BOOL)hasPrefix:(NSString *)_s {
+  /* Note: I think we can keep this as a regular method */
+  return _s == (id)self || _s == nil ? YES : NO;
+}
+- (BOOL)hasSuffix:(NSString *)_s {
+  /* Note: I think we can keep this as a regular method */
   return _s == (id)self || _s == nil ? YES : NO;
 }
 
index 238d2be03b1a67d0c276206bd50ae4cab4713945..8a5c4492500a336b3c3bea5c184d61b951d1bac1 100644 (file)
@@ -1,6 +1,6 @@
 # version
 
-SUBMINOR_VERSION:=151
+SUBMINOR_VERSION:=152
 
 # v4.3.115 requires libFoundation v1.0.59
 # v4.2.72  requires libEOControl  v4.2.39