@@ -23,13 +23,13 @@ #import "OFDate.h" #import "OFNumber.h" #import "OFString.h" @implementation OFMutableLHAArchiveEntry -@dynamic fileName, compressionMethod, compressedSize, uncompressedSize, date; -@dynamic headerLevel, CRC16, operatingSystemIdentifier, fileComment, mode, UID; -@dynamic GID, owner, group, modificationDate, extensions; +@dynamic fileName, compressionMethod, compressedSize, uncompressedSize; +@dynamic modificationDate, headerLevel, CRC16, operatingSystemIdentifier; +@dynamic fileComment, mode, UID, GID, owner, group, extensions; + (instancetype)entryWithFileName: (OFString *)fileName { return [[[self alloc] initWithFileName: fileName] autorelease]; } @@ -82,14 +82,14 @@ - (void)setUncompressedSize: (uint32_t)uncompressedSize { _uncompressedSize = uncompressedSize; } -- (void)setDate: (OFDate *)date +- (void)setModificationDate: (OFDate *)modificationDate { - OFDate *old = _date; - _date = [date retain]; + OFDate *old = _modificationDate; + _modificationDate = [modificationDate retain]; [old release]; } - (void)setHeaderLevel: (uint8_t)headerLevel { @@ -146,17 +146,10 @@ OFString *old = _group; _group = [group copy]; [old release]; } -- (void)setModificationDate: (OFDate *)modificationDate -{ - OFDate *old = _modificationDate; - _modificationDate = [modificationDate retain]; - [old release]; -} - - (void)setExtensions: (OFArray OF_GENERIC(OFData *) *)extensions { OFArray OF_GENERIC(OFData *) *old = _extensions; _extensions = [extensions copy]; [old release];