Has anyone ever found a way to use Core Data + NSTreeController +
NSOutlineView without getting crashes during undo?

Try setting an "isLeaf" leaf keypath on the tree controller in IB and add a Boolean isLeaf attribute in the data model. When I do that here, AbstractTree and similar examples no longer crash.

The docs claim the leaf keypath is optional, and presumably that's the intended behavior - if you run some of these samples under 10.4, they seem to work fine. Under 10.5, though, it's a different story.

Anyway, I've been working for a few months on a Core Data + NSTreeController (with a leaf keypath) + NSOutlineView project and never see this problem. When first working through the examples it was pretty disconcerting to see some of them crashing on Undo, but "no leaf keypath" seems to be the common denominator.
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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]

Reply via email to