As Jens said, it sounds like you may have a nil dataTable. Check that first.

Second, break on:

- (NSInteger)numberOfRowsInTableView:(NSTableView *)tableView;

and make sure you aren't returning 0, which would cause the other method to not be called at all.

corbin

On Jul 15, 2008, at 9:32 AM, JArod Wen wrote:

You are right. I found that the - tableView:objectValueForTableColumn:row: has never been called... Any way to fix this problem?

On Jul 13, 2008, at 1:43 AM, Jens Alfke wrote:


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.

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to