davedelong / CHCSVParser

A proper CSV parser for Objective-C

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stop parsing at certain line

Nikolai1024 opened this issue · comments

Hi,
Does anyone know how to stop parsing process once it reaches a certain line #? This would be very helpful.
Thanks
Nick

I think you'd use the delegate method - (void)parser:(CHCSVParser *)parser didBeginLine:(NSUInteger)recordNumber, and then send - (void)cancelParsing to the CHCSVParser object.

That worked perfectly. Thanks!