Re: NSTableView: Out-Of-Bounds Array Error on reloadData
Re: NSTableView: Out-Of-Bounds Array Error on reloadData
- Subject: Re: NSTableView: Out-Of-Bounds Array Error on reloadData
- From: Graham Cox <email@hidden>
- Date: Thu, 23 Jul 2009 21:34:07 +1000
On 23/07/2009, at 4:53 PM, syntonica wrote:
The entryArray is, of course, the dataSource for the tableView.
No it's not, if <entryArray> is an NSArray or related. NSArray does
not implement NSTableDataSource. Your (controller) code must implement
that, maybe by using or referencing an array. If <entryArray> is the
controller, we need to see it. (and, as an aside, it's badly named).
I am assuming I am hitting a bug in 10.4 that was fixed in 10.5, but
for the life of me, I cannot figure out what it may be. Recompiling
in 10.5 does not give me any clues.
So show us the real datasource code. The -awakeFromNib snippet tells
us nothing useful. Your assumption is very unlikely to be the case,
since thousands of tables have been working since the release of
Leopard without a hoard of angry developers clamouring for blood...
--Graham
_______________________________________________
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