Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

davbeck

macrumors regular
Original poster
May 16, 2008
104
0
Reno, NV
I have an application that has an NSArrayController bound to an NSTableView (all of the columns, not the table itself) that was working fine. I was working on something else in the application and when I went back to test it I noticed I was getting an error when I removed an object from the array (also using bindings). The error is: -[NSCFArray objectAtIndex:]: index (-1( or possibly larger)) beyond bounds (4). Where 4 is the length of the array (making it 1 greater than the maximum index). Using the debugger I see that it is the updateSelectionIndexes that is causing this (preceded by NSTableBinder).

Has anyone run into this?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.