• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Fix for Core Data + NSTreeController + NSOutlineView Crashes?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: How to launch window of the application on clicking of dock icon?
  • Next by Date: Re: Multithreading and Mach ports
  • Previous by thread: Re: Fix for Core Data + NSTreeController + NSOutlineView Crashes?
  • Next by thread: Get Info via OS X UI on app with changed version data still shows old value, unless copied, then it works
  • Index(es):
    • Date
    • Thread