NSTableView reloadData question
NSTableView reloadData question
- Subject: NSTableView reloadData question
- From: Bill Cheeseman <email@hidden>
- Date: Wed, 10 Apr 2002 14:55:56 -0400
After my action method adds an object to a newly-created empty dataSource
array, reloadData works, and the new object appears as a row in my table
view.
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.
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.
Any suggestions?
(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. Many
of the inquiries were resolved, typically by adding a retain here or there,
but many were not resolved. None of the suggestions has helped me.)
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
The AppleScript Sourcebook -
http://www.AppleScriptSourcebook.com
Vermont Recipes -
http://www.stepwise.com/Articles/VermontRecipes
Croquet Club of Vermont -
http://members.valley.net/croquetvermont
_______________________________________________
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.