+2004-12-16 Marcus Mueller <znek@mulle-kybernetik.com>
+
+ * NGCalendarDateRange.[hm]: new convenience method -containsDateRange:
+ (v4.5.140)
+
2004-12-14 Marcus Mueller <znek@mulle-kybernetik.com>
* NGExtensions.xcode: minor fixes and updated
[self->endDate compare:date] == NSOrderedDescending) ? YES : NO;
}
+- (BOOL)containsDateRange:(NGCalendarDateRange *)_range {
+ NSComparisonResult result;
+
+ result = [self->startDate compare:[_range startDate]];
+ if (!((result == NSOrderedSame) || (result == NSOrderedAscending)))
+ return NO;
+ result = [self->endDate compare:[_range endDate]];
+ if (result == NSOrderedAscending)
+ return NO;
+ return YES;
+}
+
+
/* comparison */
- (BOOL)isEqual:(id)other {
- (BOOL)doesIntersectWithDateRange:(NGCalendarDateRange *)_other;
- (BOOL)containsDate:(NSCalendarDate *)date;
+- (BOOL)containsDateRange:(NGCalendarDateRange *)_range;
@end
# version
-SUBMINOR_VERSION:=139
+SUBMINOR_VERSION:=140
# v4.3.115 requires libFoundation v1.0.59
# v4.2.72 requires libEOControl v4.2.39