+2005-03-02 Marcus Mueller <znek@mulle-kybernetik.com>
+
+ * NGCalendarDateRange.m: Bugfix for -containsDate: (v4.5.154)
+
2005-03-01 Helge Hess <helge.hess@opengroupware.org>
* NGBundleManager.m (-pathForResource:ofType:inDirectory:languages:):
return [NGCalendarDateRange calendarDateRangeWithStartDate:a endDate:b];
}
-- (BOOL)containsDate:(NSCalendarDate *)date {
- return ([self->startDate earlierDate:date] == self->startDate &&
- [self->endDate compare:date] == NSOrderedDescending) ? YES : NO;
+- (BOOL)containsDate:(NSCalendarDate *)_date {
+ NSComparisonResult result;
+
+ result = [self->startDate compare:_date];
+ if (!((result == NSOrderedSame) || (result == NSOrderedAscending)))
+ return NO;
+ result = [self->endDate compare:_date];
+ if (result == NSOrderedAscending)
+ return NO;
+ return YES;
}
- (BOOL)containsDateRange:(NGCalendarDateRange *)_range {
);
buildSettings = {
DYLIB_COMPATIBILITY_VERSION = 1;
- DYLIB_CURRENT_VERSION = 4.5.144;
+ DYLIB_CURRENT_VERSION = 4.5.154;
FRAMEWORK_SEARCH_PATHS = "$(LOCAL_LIBRARY_DIR)/Frameworks";
FRAMEWORK_VERSION = A;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
# version
-SUBMINOR_VERSION:=153
+SUBMINOR_VERSION:=154
# v4.3.115 requires libFoundation v1.0.59
# v4.2.72 requires libEOControl v4.2.39
mainGroup = ADDF476606DA572500C4E7F8;
projectDirPath = "";
projectReferences = (
- {
- ProductGroup = ADDF478506DA580C00C4E7F8;
- ProjectRef = ADDF478406DA580C00C4E7F8;
- },
{
ProductGroup = ADDF478706DA581F00C4E7F8;
ProjectRef = ADDF478606DA581F00C4E7F8;
ProductGroup = ADDF478906DA583300C4E7F8;
ProjectRef = ADDF478806DA583300C4E7F8;
},
+ {
+ ProductGroup = ADDF478506DA580C00C4E7F8;
+ ProjectRef = ADDF478406DA580C00C4E7F8;
+ },
);
targets = (
ADDF479906DA58D700C4E7F8,