Hi, I'm using NSTreeController to display an object graph in an outline view. The object graph is not CoreData based, this is a very simple model where each object represent a node and may have an array of children.
I do something very simple. I create a root node and insert it to the tree controller content array. I then create 20 children nodes and insert them in the root node. Now come the funny part. If I remove an object from the model, the outline and the controller are properly updated, but removed NSTreeNode not always released. First leak I encounter is when I delete a selected node. The selected node is never released (but NSTreeController's selection is properly updated though). An other case where NSTreeNode are not released is when I expand my root item, and then delete it. Once again, controller and outline view contents are properly updated, but NSTreeNodes are not released. The NSTreeController keep a references to the deleted nodes and release them only when it is destroyed (and do not reuse them as the count of living instances increase each time I create new nodes). Unfortunately I cannot rebuild my tree controller each time the user update the model. Does somebody already coped with this problem ? -- Jean-Daniel _______________________________________________ Cocoa-dev mailing list ([email protected]) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
