]> err.no Git - sope/blobdiff - sope-core/NGExtensions/FdExt.subproj/NSNull+misc.m
fixed a compilation issue
[sope] / sope-core / NGExtensions / FdExt.subproj / NSNull+misc.m
index 0b7867ba4595e8c4c799390ae7994e10333e51e5..550a3decc8f6fa2bcd84dec795cccbe7a6e8c208 100644 (file)
@@ -246,3 +246,19 @@ static inline BOOL doAbort(void) {
 }
 
 @end /* NSString(NSNullMisc) */
+
+@implementation NSArray(NSNullMisc)
+
+- (BOOL)isNotEmpty {
+  return [self count] == 0 ? NO : YES;
+}
+
+@end /* NSArray(NSNullMisc) */
+
+@implementation NSDictionary(NSNullMisc)
+
+- (BOOL)isNotEmpty {
+  return [self count] == 0 ? NO : YES;
+}
+
+@end /* NSDictionary(NSNullMisc) */