Re: NSTableView reloadData question
Re: NSTableView reloadData question
- Subject: Re: NSTableView reloadData question
- From: Bill Cheeseman <email@hidden>
- Date: Wed, 10 Apr 2002 17:56:13 -0400
on 02-04-10 5:45 PM, Ondra Cada at email@hidden wrote:
>
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.
I thought I made it clear that I was describing a second, alternative
scenario. In the second case, I call addRecord after removing all the old
records -- instead of calling addRecord, as in the first case, on a new,
empty table. The *new* record should appear in the table in both cases, but
it doesn't appear in the second case.
But, anyway, I found the solution, which raises a whole host of other
issues, as described in my second message.
--
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.