Post

Replies

Boosts

Views

Activity

Comment on How to detect an uninitialized NSMutableArray produced by NSKeyedUnarchiver.unarchiveObjectWithData
I am loading the archived data for a NSOutlineView. My OutlineItems are stored in a tree. Each OutlineItem contains a NSMutableArray (Children). This array contains the children for that OutlineItem. The problem turns out to be with one OutlineItem. Its Children' is shown as an __NSPlaceholderArray when I debug. Apparently it was archived that way due to a bug. Right now, I'm looking for a way to detect items with such an array and delete the item. I'll save the bug itself for later.
Jul ’22