Fix for Core Data + NSTreeController + NSOutlineView Crashes?
Fix for Core Data + NSTreeController + NSOutlineView Crashes?
- Subject: Fix for Core Data + NSTreeController + NSOutlineView Crashes?
- From: Jerry Krinock <email@hidden>
- Date: Tue, 9 Dec 2008 19:13:54 -0800
Well, I just spent a half hour meticulously reproducing how to make
Apple's AbstractTree Sample Code project crash after two Undo
operations [2], and then found that this is a known issue [1].
Has anyone ever found a way to use Core Data + NSTreeController +
NSOutlineView without getting crashes during undo? Of course, writing
your own Undo support would probably work, but that kind of defeats
the purpose of using Core Data.
Thank you,
Jerry Krinock
[1] See end of this message:
http://www.cocoabuilder.com/archive/message/cocoa/2008/6/9/209729
[2] Steps to Reproduce
1. Download Apple's AbstractTree sample code project:
http://developer.apple.com/samplecode/AbstractTree/AbstractTree.zip
2. Doubleclick AbstractTree/AbstractTree/AbstractTree.xcodeproj
3. Just to make sure you're not using any old garbage, click Clean
All Targets.
4. Check "Also Clean Dependencies".
5. Check "Also Clean Precomiled Headers".
6. Click "OK"
7. Just to make sure we don't have any corrupt data, check in your
Home's Application Support and see if you have an AbstractTree folder
from a previous run of AbstractTree. If so, delete it.
8. Ditto, in your Preferences. (I don't believe AbstractTree writes
any preferences, but just to make sure).
9. Build and run the project.
10. In the app's window, click the "Add" button three times so that
you have a 3-level outline with three items in it like this:
untitled node
untitled node
untitled node
11. Click Edit > Undo twice.
Result: Crash.
FREED(id): message hash sent to freed object
_______________________________________________
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