2007-06-13 Wolfgang Sourdeau <wsourdeau@inverse.ca>
+ * UI/Scheduler/NSArray+Scheduler.m ([NSArray
+ -compareEventsAscending:otherEvent]): no longer use compare: on
+ the time objects since one of them could be an NSNull, which
+ crashes when comparing with anything.
+
* UI/Scheduler/UIxCalListingActions.m ([UIxCalListingActions
-eventsListAction]): sort events from here.
([UIxCalListingActions -tasksListAction]): sort tasks from here.
- (NSComparisonResult) compareEventsAscending: (NSArray *) otherEvent
{
- return [[self objectAtIndex: 4] compare: [otherEvent objectAtIndex: 4]];
+ NSComparisonResult result;
+ unsigned int selfTime, otherTime;
+
+ selfTime = [[self objectAtIndex: 4] intValue];
+ otherTime = [[otherEvent objectAtIndex: 4] intValue];
+ if (selfTime > otherTime)
+ result = NSOrderedDescending;
+ else if (selfTime < otherTime)
+ result = NSOrderedAscending;
+ else
+ result = NSOrderedSame;
+
+ return result;
}
- (NSComparisonResult) compareTasksAscending: (NSArray *) otherTask
top: 17em;
bottom: 0px;
left: .2em;
- right: .7em;
+ right: 0px;
padding: 0px;
- overflow: hidden;
-}
+ overflow: hidden; }
DIV#tasksListView H2
{ font-size: 10pt;
UL#tasksList, UL#calendarList
{ cursor: default;
- margin: .25em;
+ margin: 0px;
padding: 0px;
border-bottom: 1px solid #fff;
border-right: 1px solid #fff;
-moz-border-left-colors: #9c9a94 #000 transparent;
list-style-type: none;
list-style-image: none;
- overflow-y: auto;
+ overflow: auto;
overflow-x: hidden; }
UL#calendarList
UL#tasksList
{ position: absolute;
- width: 100%;
top: 2em;
- left: .25em;
- right: .25em;
+ left: 0px;
+ right: 0px;
bottom: .25em; }
UL#tasksList LI