Debugging insight needed for NSKeyedUnarchiver
Debugging insight needed for NSKeyedUnarchiver
- Subject: Debugging insight needed for NSKeyedUnarchiver
- From: Graham Cox <email@hidden>
- Date: Thu, 27 Feb 2014 12:11:49 +1100
I've got a weird bug I'm having a hard time tracking down.
In an archive, I have an array of objects. In an earlier version of my app, these are dearchived fine. In a recent build, they do not. The array is returned, but it contains 0 objects. Using a delegate on the unarchiver, I can see that the objects that this array should contain are in fact dearchived, but for some reason which I can't examine (due to it being internal to NSKeyedUnarchiver) they never end up in the array. This only occurs in one particular instance - the archive is large and otherwise decodes fine. The particular line that decodes the array is executed many times in the course of decoding the whole archive.
Given that this worked previously and no longer does, I'm quite prepared to believe that I introduced a bug, but it's very unclear how it could affect the internals of NSKeyedUnarchiver (memory clobbering?).
Can anyone suggest a way I could debug this? Note that no exceptions are thrown at any point.
--Graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden