• 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
Missing children in NSTreeController/NSOutlineView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Missing children in NSTreeController/NSOutlineView


  • Subject: Missing children in NSTreeController/NSOutlineView
  • From: Mikkel Eide Eriksen <email@hidden>
  • Date: Mon, 14 May 2012 09:40:43 +0200

Hi all,

I have as follows in Interface builder:

- A superclass with a @property NSOrderedSet *properties containing zero or more instances of objects, as well as some normal string properties. All the objects inherit from the superclass.

- An NSTreeController whose content object is bound to the selection of an NSArrayController. The NSTreeController is configured with the children key path "properties"

- An NSOutlineView whose content is bound to my tree controller's arrangedObjects. The outline view has two columns, each bound to a string property on arrangedObjects.

When I run my app, the outline view populates and changes its contents when I change the selection of the array controller. The columns show the string properties as expected.

However, no children are displayed and there is no disclosure triangle. I have verified with breakpoints that the tree controller does access my "properties" and that a set is returned with contents of the right objects. Likewise, changing the children key path to a non-existing property will yield a KVO-compliance exception.

I've read through the docs and spent some time googling, but nothing I've found has suggested a reason for the children to be missing.

What am I doing wrong?

Regards,

Mikkel
_______________________________________________

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

  • Follow-Ups:
    • Re: Missing children in NSTreeController/NSOutlineView
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: Dissappearing textField string value
  • Next by Date: Re: Missing children in NSTreeController/NSOutlineView
  • Previous by thread: Re: Dissappearing textField string value
  • Next by thread: Re: Missing children in NSTreeController/NSOutlineView
  • Index(es):
    • Date
    • Thread