Index: src/OFRunLoop.m ================================================================== --- src/OFRunLoop.m +++ src/OFRunLoop.m @@ -289,11 +289,11 @@ } - (void)addTimer: (OFTimer*)timer { @synchronized (timersQueue) { - [timersQueue addObject: timer]; + [timersQueue insertObject: timer]; } [streamObserver cancel]; } - (void)streamIsReadyForReading: (OFStream*)stream Index: src/OFSortedList.h ================================================================== --- src/OFSortedList.h +++ src/OFSortedList.h @@ -22,12 +22,12 @@ * @warning Because the list is sorted, all methods inserting an object at a * specific place are unavailable, even though they exist in OFList! */ @interface OFSortedList: OFList /*! - * @brief Adds the object to the list while keeping the list sorted. + * @brief Inserts the object to the list while keeping the list sorted. * - * @param object The object to add + * @param object The object to insert * @return The list object for the object just added */ -- (of_list_object_t*)addObject: (id )object; +- (of_list_object_t*)insertObject: (id )object; @end Index: src/OFSortedList.m ================================================================== --- src/OFSortedList.m +++ src/OFSortedList.m @@ -45,11 +45,11 @@ { @throw [OFNotImplementedException exceptionWithClass: [self class] selector: _cmd]; } -- (of_list_object_t*)addObject: (id )object +- (of_list_object_t*)insertObject: (id )object { of_list_object_t *iter; for (iter = lastListObject; iter != NULL; iter = iter->previous) { if ([object compare: iter->object] != OF_ORDERED_ASCENDING)