+2005-09-28 Helge Hess <helge.hess@skyrix.com>
+
+ * FdExt.subproj/NSNull+misc.m: added -isNotEmpty to NSData (v4.5.175)
+
2005-09-14 Helge Hess <helge.hess@opengroupware.org>
* NGBundleManager.m: avoid an autorelease call in class lookup, added
@implementation EOKeyGrouping
- (id)initWithKey:(NSString *)_key {
- if ((self = [super initWithDefaultName:nil])) {
- self->key = [_key copy];
+ if ((self = [super initWithDefaultName:nil]) != nil) {
+ self->key = [_key copy];
+
+ // TODO: create on-demand?
self->groupNames = [[NSMutableArray alloc] initWithCapacity:32];
}
return self;
if ((len = [self length]) == 0)
return NO;
+ // TODO: just check the first char for performance ...
+ // But: a single space should be treated as emtpy, since this is very common
+ // in SQL (Sybase in special)
for (i = 0; i < len; i++) {
if (!isspace([self characterAtIndex:i]))
return YES;
}
@end /* NSDictionary(NSNullMisc) */
+
+@implementation NSData(NSNullMisc)
+
+- (BOOL)isNotEmpty {
+ return [self length] == 0 ? NO : YES;
+}
+
+@end /* NSData(NSNullMisc) */
# version
-SUBMINOR_VERSION:=174
+SUBMINOR_VERSION:=175
# v4.3.115 requires libFoundation v1.0.59
# v4.2.72 requires libEOControl v4.2.39