@@ -59,11 +59,11 @@ * @brief Creates a new OFZIPArchive object with the specified seekable stream. * * @param stream A seekable stream from which the ZIP archive will be read * @param mode The mode for the ZIP file. Valid modes are "r" for reading, * "w" for creating a new file and "a" for appending to an existing - * file. + * archive. * @return A new, autoreleased OFZIPArchive */ + (instancetype)archiveWithSeekableStream: (OFSeekableStream *)stream mode: (OFString *)mode; @@ -72,11 +72,11 @@ * @brief Creates a new OFZIPArchive object with the specified file. * * @param path The path to the ZIP file * @param mode The mode for the ZIP file. Valid modes are "r" for reading, * "w" for creating a new file and "a" for appending to an existing - * file. + * archive. * @return A new, autoreleased OFZIPArchive */ + (instancetype)archiveWithPath: (OFString *)path mode: (OFString *)mode; #endif @@ -88,11 +88,11 @@ * specified seekable stream. * * @param stream A seekable stream from which the ZIP archive will be read * @param mode The mode for the ZIP file. Valid modes are "r" for reading, * "w" for creating a new file and "a" for appending to an existing - * file. + * archive. * @return An initialized OFZIPArchive */ - initWithSeekableStream: (OFSeekableStream *)stream mode: (OFString *)mode OF_DESIGNATED_INITIALIZER; @@ -102,11 +102,11 @@ * specified file. * * @param path The path to the ZIP file * @param mode The mode for the ZIP file. Valid modes are "r" for reading, * "w" for creating a new file and "a" for appending to an existing - * file. + * archive. * @return An initialized OFZIPArchive */ - initWithPath: (OFString *)path mode: (OFString *)mode; #endif