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

Re: Missing children in NSTreeController/NSOutlineView (SOLVED)


  • Subject: Re: Missing children in NSTreeController/NSOutlineView (SOLVED)
  • From: Mikkel Eide Eriksen <email@hidden>
  • Date: Mon, 14 May 2012 17:56:01 +0200

There it was! My "properties" property is an NSOrderedSet. After some more time in the debugger, I found out that the tree controller gets the object at children key path, and checks whether it's an NSSet or an NSArray. NSOrderedSet is neither, it inherits directly from NSObject and that appears to be the problem.

As a quick hack to test this, I made a "propertiesSet" property that just returns [[self properties] set] and the children now show up as expected.

I guess I'll have to refactor some things.

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

References: 
 >Missing children in NSTreeController/NSOutlineView (From: Mikkel Eide Eriksen <email@hidden>)
 >Re: Missing children in NSTreeController/NSOutlineView (From: Quincey Morris <email@hidden>)
 >Re: Missing children in NSTreeController/NSOutlineView (From: Mikkel Eide Eriksen <email@hidden>)
 >Re: Missing children in NSTreeController/NSOutlineView (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: MPProcessing in Lion
  • Next by Date: Re: Missing children in NSTreeController/NSOutlineView
  • Previous by thread: Re: Missing children in NSTreeController/NSOutlineView
  • Next by thread: Re: Missing children in NSTreeController/NSOutlineView (SOLVED)
  • Index(es):
    • Date
    • Thread