LineReader icon indicating copy to clipboard operation
LineReader copied to clipboard

Consider <NSFastEnumeration> conformance

Open davedelong opened this issue 12 years ago • 1 comments

It'd be an interesting thing to make FileReader conform to <NSFastEnumeration>, so you could do:

FileReader *r = [[FileReader alloc] initWithFilePath:pathToFile];
for (NSString *line in r) {
  NSLog(@"line: %@", line);
}
[r release];

davedelong avatar Aug 11 '11 23:08 davedelong

I like the idea. Though, I am not sure when I can implement it since I do not have a Mac at home - only at work.

johnjohndoe avatar Aug 12 '11 17:08 johnjohndoe