Hacker News new | ask | show | jobs
by BarkMore 5659 days ago
There's no caveat for using YAJL. An application can feed data to YAJL from connection:didReceiveData: and know that the document is complete in connectionDidFinish:. This works if there are one or many calls to connection:didReceiveData:.

Anybody new to iOS needs to learn that connection:didReceiveData: is called as data is received. There's no way around that. There are two ways to deal with this. The first is to buffer the data as the author suggests. The other approach is to use an incremental parser.