From 76f37ac5248ec362d7a3d0c10bdfdc00d520438f Mon Sep 17 00:00:00 2001 From: helge Date: Wed, 5 Oct 2005 12:01:36 +0000 Subject: [PATCH] added -isNotEmpty to NSSet git-svn-id: http://svn.opengroupware.org/SOPE/trunk@1155 e4a50df8-12e2-0310-a44c-efbce7f8a7e3 --- sope-core/NGExtensions/ChangeLog | 4 ++++ sope-core/NGExtensions/FdExt.subproj/NSNull+misc.m | 8 ++++++++ sope-core/NGExtensions/Version | 2 +- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/sope-core/NGExtensions/ChangeLog b/sope-core/NGExtensions/ChangeLog index 7935158d..8f774e21 100644 --- a/sope-core/NGExtensions/ChangeLog +++ b/sope-core/NGExtensions/ChangeLog @@ -1,3 +1,7 @@ +2005-10-05 Helge Hess + + * FdExt.subproj/NSNull+misc.m: added -isNotEmpty to NSSet (v4.5.176) + 2005-09-28 Helge Hess * FdExt.subproj/NSNull+misc.m: added -isNotEmpty to NSData (v4.5.175) diff --git a/sope-core/NGExtensions/FdExt.subproj/NSNull+misc.m b/sope-core/NGExtensions/FdExt.subproj/NSNull+misc.m index 35f5e4f8..7e1ca882 100644 --- a/sope-core/NGExtensions/FdExt.subproj/NSNull+misc.m +++ b/sope-core/NGExtensions/FdExt.subproj/NSNull+misc.m @@ -258,6 +258,14 @@ static inline BOOL doAbort(void) { @end /* NSArray(NSNullMisc) */ +@implementation NSSet(NSNullMisc) + +- (BOOL)isNotEmpty { + return [self count] == 0 ? NO : YES; +} + +@end /* NSSet(NSNullMisc) */ + @implementation NSDictionary(NSNullMisc) - (BOOL)isNotEmpty { diff --git a/sope-core/NGExtensions/Version b/sope-core/NGExtensions/Version index 0470f28d..fa38c4ab 100644 --- a/sope-core/NGExtensions/Version +++ b/sope-core/NGExtensions/Version @@ -1,6 +1,6 @@ # version -SUBMINOR_VERSION:=175 +SUBMINOR_VERSION:=176 # v4.3.115 requires libFoundation v1.0.59 # v4.2.72 requires libEOControl v4.2.39 -- 2.39.5