Skip to content

Consider <NSFastEnumeration> conformance #4

davedelong opened this Issue Aug 11, 2011 · 1 comment

2 participants


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];

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.