Skip to content

Commit

Permalink
Added various program options to the user interface.
Browse files Browse the repository at this point in the history
+ A trailing slash is removed from the source path by the directory reader.
+ Added UI output of the processing time.
+ Added UI option to print lines to the console.
+ Changed read mode switch to radio group in the user interface.
+ Minor bugfix: Empty files are not read.
  • Loading branch information
johnjohndoe committed Oct 12, 2010
1 parent 0c896b0 commit ab074ff
Show file tree
Hide file tree
Showing 5 changed files with 567 additions and 150 deletions.
5 changes: 4 additions & 1 deletion DirectoryReader.m
Expand Up @@ -27,7 +27,10 @@ - (id)initWithPath:(NSString*)path {
if (!path || [path length] <= 0) {
return nil;
}
m_path = path;
// Remove trailing slash if appended.
NSMutableString* mutablePath = [NSMutableString stringWithString:path];
[mutablePath replaceOccurrencesOfString:@"/" withString:@"" options:NSBackwardsSearch range:NSMakeRange([path length] - 1, 1)];
m_path = mutablePath;
}
return self;
}
Expand Down

0 comments on commit ab074ff

Please sign in to comment.