• 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
[solved] Outline view bound to an NSTreeController's content shows all children at the top level
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[solved] Outline view bound to an NSTreeController's content shows all children at the top level


  • Subject: [solved] Outline view bound to an NSTreeController's content shows all children at the top level
  • From: Daniel DeCovnick <email@hidden>
  • Date: Thu, 23 Jul 2009 17:36:28 -0700

FTA:

Adding parent == nil to the fetch predicate in IB solves this problem. Replace parent with your relationship name.

-Daniel


On Jul 23, 2009, at 3:32 AM, Daniel DeCovnick wrote:

Hi all,

Subject is pretty self-explanatory. The problem: I don't want that behavior.

A little longer explanation: The data is a CoreData entity with a self-referencing children-parent many-to-one relationship, which can go arbitrarily deep. The problem is, when call addChild: or insertChild: instead of only appearing one level down, the new instance appears at the top level as well. Likewise, if I make a child from a node on THAT level, the child appears 3 times, once where it's supposed to be, once in the top level, and once one level below its parent's instance at the top level.

I get the feeling there's a simple fix for this, but I can't figure out what it is. If it's relevant, I'm not calling add/insertChild: (is there a difference, BTW?) in code, but rather hooking up a button to the treecontroller directly in IB.

Thanks,

Dan

Daniel DeCovnick
danhd123 at mac dot com
_______________________________________________

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

_______________________________________________

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


References: 
 >Outline view bound to an NSTreeController's content shows all children at the top level (From: Daniel DeCovnick <email@hidden>)

  • Prev by Date: Re: Recording phone calls
  • Next by Date: Re: [iPhone] Zero opacity causes UIView to go numb
  • Previous by thread: Outline view bound to an NSTreeController's content shows all children at the top level
  • Next by thread: Screen Saver test button click notification
  • Index(es):
    • Date
    • Thread