On 09.03.2013 19:58, Fred Kiefer wrote:
As you can see the problem is order dependent. In your case it may help
to move some of the decoding steps around. But this isn't a general
solution. The non-keyed unarchiver has the method:
- (void) replaceObject: (id)anObject withObject: (id)replacement
That would allow the NSCustomView initWithCoder: method to replace
itself early on, but there isn't anything similar for keyed coding.
I was wrong in the last two paragraphs. We later added the
-replaceObject:withObject: for the NSKeyedUnarchiver. This method just
needs to be used by NSCustomView. I will test that later on with a lot
of NIB files to see whether there are other issues with that solution.