NSTableView or NSArray Troubles...
NSTableView or NSArray Troubles...
- Subject: NSTableView or NSArray Troubles...
- From: Ian Gillespie <email@hidden>
- Date: Wed, 11 Dec 2002 11:48:46 -0800
OK, I have a document based app which was working fine for a long time
when I noticed that if I tried to delete the last row in the table I
would get a -[NSCFArray objectAtIndex:]: index (2) beyond bounds (2)
error. This used to not happen, the error occurred in my method when
after I remove the object from my array and I call [tableView
reloadData].
Now, when I try to open a new document I get a -[NSCFArray
objectAtIndex:]: index (0) beyond bounds (0). However, if during my
init method in my NSDocument subclass I add an object to the array
everything is fine, until of course I try to delete the object from the
table view. What I can't figure out is that everything seemed to be
working fine and now it isn't; I can't think of anything that I did to
make this happen (but I probably did do something). I should say that
my table view is subclassed, but this did NOT start happening right
after I created my subclass or anything.
Thanks for any help or suggesions.
Ian
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.