• 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
NSTreeController Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTreeController Problem


  • Subject: NSTreeController Problem
  • From: Austin Sarner <email@hidden>
  • Date: Sun, 6 Nov 2005 01:32:09 -0500

I believe I have found a bug in NSTreeController that is seemingly isolated to 10.4.3:

I recently picked up a test project I had started a few weeks ago prior to the release of 10.4.3. Basically, there is a table and an outline -- an array controller and a tree controller. The table is responsible for a source list of sorts, and then the outline displays stuff inside the selected source item. This all works well and good... until you do the following:
Let's say there are 3 items in the source list: Item One, Item Two, Item Three. Item One contains 4 things to be displayed in the outline view, Item Two contains 6 things, and Item Three contains 8 things. If I select Item One, then Item Two, then Item Three, everything works as fine. The outline updates with the necessary items. Now, If instead I select Item Two then Item One, or Item three then Item Two, I get an out of bounds error. The problem, thus, apparently is caused by updating the tree controller with a lower number of items than the previous selection in the source list.


The error looks something like this:
*** -[NSCFArray objectAtIndex:]: index (4) beyond bounds (4)

The outline properly updates with the items in the selected source list, but it locks up and then crashes if I click anywhere.

I realize the description is kind of vague, but it's a rather specific problem. If anyone understands what I mean, has an idea as to how to go about fixing it, or has experienced it themselves, please speak up. Thanks a bunch for your time.
––––––––––––
Austin Sarner



_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Prev by Date: Re: multiple documents in an app (problem solved)
  • Next by Date: Re: [Moderator] Re: Silly question. Is iTunes Cocoa application?
  • Previous by thread: Re: Silly question. Is iTunes Cocoa application?
  • Next by thread: Re: NSTreeController Problem
  • Index(es):
    • Date
    • Thread