You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Do an "atomic" replace of the changed nodes array, thus only causing a single KVO notification.
// Please note the strange line setSubNodes:nil, which is a workaround for an nasty crashing bug deep
// inside NSTreeController, where we get a zombie NSTreeControllerTreeNode is some cases. Apparently
// the NSTreeController is very particular about us replacing the whole array in one go (maybe that
// isn't entirely KVO compliant), and it gets confused with its NSTreeControllerTreeNode objects.
// The extra line (setting the array to nil) seems to clear out all NSTreeControllerTreeNodes and
// then they get rebuilt with the next line. Until we rework our own stuff, we'll stick with this
// workaround...
if (parentNode)
{
[parentNode setSubNodes:nil]; // Important workaround. Do not remove!
[parentNode setSubNodes:nodes];
}
else
{
[self setRootNodes:nodes];
}
is still causing trouble?
The text was updated successfully, but these errors were encountered:
We've got a user who's able to reliably crash the app in the iMB code:
Our theory is that the oldSubNodes has been released in another thread and there's also this (from a different crash report):
All of which makes us think that this:
is still causing trouble?
The text was updated successfully, but these errors were encountered: