• 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 19:37:47 +0200

On 14/05/2012, at 19.15, Quincey Morris wrote:
> On May 14, 2012, at 09:29 , Mikkel Eide Eriksen wrote:
>> On 14/05/2012, at 18.07, Quincey Morris wrote:
>>> On May 14, 2012, at 08:56 , Mikkel Eide Eriksen wrote:
>>>> 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.
>>>
>>> Surely the correct thing to do is specify the "count" property (or some leaf property) explicitly in IB, isn't it?
>>>
>>> Presumably the tree controller is testing for NSSet or NSArray in order to decide whether it can default the missing selector to "count". If so, you should probably file a bug report. :)
>>
>> Explicitly setting the count key path to "count" gives me an exception from within  -[NSTreeControllerTreeNode _leafState] as soon as the window is loaded.
>>
>> 2012-05-14 18:23:13.562 GUITest[1805:703] -[_NSStateMarker unsignedIntegerValue]: unrecognized selector sent to instance 0x7faab1c18950
>
> In the absence of other information this sounds like a bug in NSTreeController. What happens if you change the count property in IB to "set.count"?

Same error as above.

> Did you intend to take this off-list?

Oops, no. I was using reply-all and didn't notice that the list had slipped off :-)

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 (SOLVED)
      • From: Mikkel Eide Eriksen <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>)
 >Re: Missing children in NSTreeController/NSOutlineView (SOLVED) (From: Mikkel Eide Eriksen <email@hidden>)

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