Skip to content
Browse files

naming convention. more to come

  • Loading branch information...
1 parent 978fc6b commit 1b0b1f153fc5952a515a5cf5b879149b2cd50cf1 @zbowling zbowling committed May 18, 2012
Showing with 12 additions and 12 deletions.
  1. +2 −9 Objective-Zip/ZipFile.h
  2. +10 −3 Objective-Zip/ZipFile.m
View
11 Objective-Zip/ZipFile.h
@@ -54,16 +54,9 @@ typedef enum {
@class ZipWriteStream;
@class FileInZipInfo;
-@interface ZipFile : NSObject {
- NSString *_fileName;
- ZipFileMode _mode;
+@interface ZipFile : NSObject
-@private
- zipFile _zipFile;
- unzFile _unzFile;
-}
-
-- (id) initWithFileName:(NSString *)fileName mode:(ZipFileMode)mode;
+- (id) initWithPath:(NSString *)path mode:(ZipFileMode)mode;
- (ZipWriteStream *) writeFileInZipWithName:(NSString *)fileNameInZip compressionLevel:(ZipCompressionLevel)compressionLevel;
- (ZipWriteStream *) writeFileInZipWithName:(NSString *)fileNameInZip fileDate:(NSDate *)fileDate compressionLevel:(ZipCompressionLevel)compressionLevel;
View
13 Objective-Zip/ZipFile.m
@@ -40,13 +40,20 @@
#define FILE_IN_ZIP_MAX_NAME_LENGTH (256)
-@implementation ZipFile
+@implementation ZipFile {
+ NSString *_fileName;
+ ZipFileMode _mode;
+
+@private
+ zipFile _zipFile;
+ unzFile _unzFile;
+}
-- (id) initWithFileName:(NSString *)fileName mode:(ZipFileMode)mode {
+- (id) initWithPath:(NSString *)path mode:(ZipFileMode)mode {
self = [super init];
if (self) {
- _fileName= fileName;
+ _fileName= path;
_mode= mode;
switch (mode) {

0 comments on commit 1b0b1f1

Please sign in to comment.
Something went wrong with that request. Please try again.