Re: Problem on reload data source of a table view
Re: Problem on reload data source of a table view
- Subject: Re: Problem on reload data source of a table view
- From: Jens Alfke <email@hidden>
- Date: Sat, 12 Jul 2008 22:43:06 -0700
On 12 Jul '08, at 10:35 PM, JArod Wen wrote:
The problem is that after I update the data source, which is
tableSource in tableController, [dataTable reloadData] will not
update the table view in the window
You're sure that, at runtime, 'dataTable' is not nil? It's easy to
overlook an outlet when wiring up the nib, and a nil object pointer
acts as a no-op.
If that's not the problem, add an NSLog call to your -
objectValueForTableColumn: method, so you can see whether it's getting
called again after you call reloadData.
—Jens
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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