From a330b163a35a357cef2004587b013420308f32da Mon Sep 17 00:00:00 2001 From: helge Date: Wed, 20 Jul 2005 11:50:27 +0000 Subject: [PATCH] fixed a bug in isNotEmpty git-svn-id: http://svn.opengroupware.org/SOPE/trunk@926 e4a50df8-12e2-0310-a44c-efbce7f8a7e3 --- sope-core/NGExtensions/ChangeLog | 3 +++ sope-core/NGExtensions/FdExt.subproj/NSNull+misc.m | 4 ++-- sope-core/NGExtensions/Version | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/sope-core/NGExtensions/ChangeLog b/sope-core/NGExtensions/ChangeLog index c6023c56..18376667 100644 --- a/sope-core/NGExtensions/ChangeLog +++ b/sope-core/NGExtensions/ChangeLog @@ -1,5 +1,8 @@ 2005-07-20 Helge Hess + * FdExt.subproj/NSNull+misc.m: fixed a stupid bug in -isNotEmpty + (v4.5.165) + * FdExt.subproj/NSNull+misc.m: added -isNotEmpty for NSArray and NSDictionary (return YES in case they have no elements) (v4.5.164) diff --git a/sope-core/NGExtensions/FdExt.subproj/NSNull+misc.m b/sope-core/NGExtensions/FdExt.subproj/NSNull+misc.m index a8ebf83d..550a3dec 100644 --- a/sope-core/NGExtensions/FdExt.subproj/NSNull+misc.m +++ b/sope-core/NGExtensions/FdExt.subproj/NSNull+misc.m @@ -250,7 +250,7 @@ static inline BOOL doAbort(void) { @implementation NSArray(NSNullMisc) - (BOOL)isNotEmpty { - return [self count] == 0 ? YES : NO; + return [self count] == 0 ? NO : YES; } @end /* NSArray(NSNullMisc) */ @@ -258,7 +258,7 @@ static inline BOOL doAbort(void) { @implementation NSDictionary(NSNullMisc) - (BOOL)isNotEmpty { - return [self count] == 0 ? YES : NO; + return [self count] == 0 ? NO : YES; } @end /* NSDictionary(NSNullMisc) */ diff --git a/sope-core/NGExtensions/Version b/sope-core/NGExtensions/Version index 32992f7d..b6a3393f 100644 --- a/sope-core/NGExtensions/Version +++ b/sope-core/NGExtensions/Version @@ -1,6 +1,6 @@ # version -SUBMINOR_VERSION:=164 +SUBMINOR_VERSION:=165 # v4.3.115 requires libFoundation v1.0.59 # v4.2.72 requires libEOControl v4.2.39 -- 2.39.5