• 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: tableView:objectValueForTableColumn:row not being called
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tableView:objectValueForTableColumn:row not being called


  • Subject: Re: tableView:objectValueForTableColumn:row not being called
  • From: Jerry Krinock <email@hidden>
  • Date: Tue, 11 Nov 2008 21:44:36 -0800


On 2008 Nov, 11, at 13:53, David Blanton wrote:

I have a table view which is contained in a split view

later I change the data source.

Danger! Danger!

numberOfRowsInTableView is called
tableView:objectValueForTableColumn:row  is never called

Whew. I thought you were going to say it caused a kernel panic.

Try setting both the table view's dataSource and delegate to nil before you set them to the new values. Then, of course, -reloadData. Just joking about the kernel panic. Although they've gotten much better since 10.2 and 10.3, table and outline views have been kind of snarky. These suggestions are the "best practices" which I see in my code.

If that doesn't work, delay some of those messages using - performSelector:withObject:afterDelay:, using a delay of .001. The idea is just to get the run loop to cycle.

If all that doesn't work, I'd look at the split view. I understand those can be kind of snarky too.

_______________________________________________

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


  • Follow-Ups:
    • Re: tableView:objectValueForTableColumn:row not being called
      • From: David Blanton <email@hidden>
References: 
 >tableView:objectValueForTableColumn:row not being called (From: David Blanton <email@hidden>)

  • Prev by Date: Re: RE : How are we supposed to retrieve the generic bundle icon?
  • Next by Date: Re: How can I use NSTextField like a button?
  • Previous by thread: tableView:objectValueForTableColumn:row not being called
  • Next by thread: Re: tableView:objectValueForTableColumn:row not being called
  • Index(es):
    • Date
    • Thread