|
From: | Fred Kiefer |
Subject: | Re: NIB loader problem |
Date: | Sat, 09 Mar 2013 20:11:10 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 |
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.
Fred
[Prev in Thread] | Current Thread | [Next in Thread] |