@@ -310,10 +310,23 @@ } @catch (OFOutOfMemoryException *e) { /* We don't really care, as we only made it smaller */ [e release]; } } + +- (void)removeLastItem +{ + count--; + @try { + data = [self resizeMemory: data + toNItems: count + withSize: itemSize]; + } @catch (OFOutOfMemoryException *e) { + /* We don't care, as we only made it smaller */ + [e release]; + } +} - copy { OFDataArray *copy = [[OFDataArray alloc] initWithItemSize: itemSize];