|
From: | Fred Kiefer |
Subject: | Changes to XIB loader |
Date: | Tue, 12 Apr 2011 11:24:32 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.2.14) Gecko/20110221 SUSE/3.1.8 Thunderbird/3.1.8 |
There is one other thing I would like to discuss. My changed code requires that the caller of the XIB decoding (Currently the class GSXibLoader and the corresponding wrapper class in Gorm) understand the order in which objects need to be decoded. (First "IBDocument.RootObjects" followed by "IBDocument.Objects") It would be a lot better to instantiate the objects in the order they show up in the file and only return these pre-produced objects when requested to decode them. But this may result in a few irrelevant objects being decoded and in the decoding happening too early. My original intention here was to properly implement reference decoding, so that it works even when the referenced object hasn't already been decoded. This was never needed when the objects where decoded in the correct order and I was to lazy to add code that would never get executed. Maybe I will have to rethink this position.
[Prev in Thread] | Current Thread | [Next in Thread] |