• 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
Re: NSTableView reloadData question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
  • Follow-Ups:
    • Re: NSTableView reloadData question
      • From: Bill Cheeseman <email@hidden>
References: 
 >NSTableView reloadData question (From: Bill Cheeseman <email@hidden>)

  • Prev by Date: [ANN] OmniObjectMeter 2.0
  • Next by Date: Re: Open Resource File with Cocoa Path
  • Previous by thread: NSTableView reloadData question
  • Next by thread: Re: NSTableView reloadData question
  • Index(es):
    • Date
    • Thread