Re: NSTableView reloadData question
Re: NSTableView reloadData question
- Subject: Re: NSTableView reloadData question
- From: Ondra Cada <email@hidden>
- Date: Wed, 10 Apr 2002 23:45:13 +0200
On Wednesday, April 10, 2002, at 08:55 , Bill Cheeseman wrote:
But if I first run the dataSource array through a filter to empty it,
reloadData doesn't work, and the new object does not appear. Using the
debugger, I can see the new object in the dataSource array, but reloadData
fails to invoke the dataSource's tableView:objectValueForTableColumn:row:
method.
Would you care to elucidate? So far as I understand the quoted text, it is
perfectly natural that the object which is not there (since it was removed
by "I run the dataSource array through a filter to empty it") is truly not
shown in the table.
My filter uses removeAllObjects to empty the dataSource array, and it then
calls reloadData to display the empty table. At this point, the filtered
dataSource looks identical in the debugger to the original empty
dataSource,
and the empty table view looks the same in both situations.
Which is quite all right, is it not?
(In researching the archives of this list and the Omni list, I find an
immense number of similar inquiries about reloadData. The sheer volume of
inquiries suggests there is a bug in NSTableView or its documentation.
It is possible, but I don't think so: I use tables quite often, and never
encountered any problem caused by the system code. Of course, that is not
a proof, just indication ;)
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
2K Development: email@hidden
http://www.2kdevelopment.cz
private email@hidden
http://www.ocs.cz/oc
_______________________________________________
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.