Re: Fix for Core Data + NSTreeController + NSOutlineView Crashes?
Re: Fix for Core Data + NSTreeController + NSOutlineView Crashes?
- Subject: Re: Fix for Core Data + NSTreeController + NSOutlineView Crashes?
- From: Bill Monk <email@hidden>
- Date: Wed, 10 Dec 2008 00:16:13 -0600
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 (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