Closed nathanday closed 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:].
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.