nathanday / ndjson

Objective-C JSON parser
1 stars 0 forks source link

A awakeFromNib: equivalent method #54

Closed nathanday closed 11 years ago

nathanday commented 11 years ago

It would be nice if objects created from NDJSON can implement a method that is called when deserialisation is complete. We could just add all instances that implement the method to a set or array and then when serialisation is complete go through all of them calling the complete method.

nathanday commented 11 years ago

When deserialisation of all objects is complete, the message awakeFromDeserializationWithJSONDeserializer: is sent to all objects that implement it. This is done by add each as they are created to an array and then sending the message to each in - [NDJSONDesializer jsonParserDidEndDocument:].