• 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: NSTableView "sometimes" doesn't repaint on reloadData:?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView "sometimes" doesn't repaint on reloadData:?


  • Subject: Re: NSTableView "sometimes" doesn't repaint on reloadData:?
  • From: marc hoffman <email@hidden>
  • Date: Sun, 31 Aug 2008 01:42:16 +0200

Andrew, Michael,

So then the question is, why does this -reloadData call fail? The most
obvious reason would be that its target is nil. In any case, step
through the code in question in the debugger, and hopefully the reason
shall be revealed.

i got it: the problem was actually my tableViewSelectionDidChange: handler. it did not appreciate me having a selection at a higher index then the new row count. tableViewSelectionDidChange: was triggered with -1 from within reloadData (makes sense), failed with an exception, and apparently that prevented reloadData from finishing properly. it also explains why the problem seemed so intermittent.


as most bugs, a real "duh" moment, once figured out ;).

thanx for bearing with me,
marc
_______________________________________________

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: NSTableView "sometimes" doesn't repaint on reloadData:?
      • From: Andrew Merenbach <email@hidden>
References: 
 >NSTableView "sometimes" doesn't repaint on reloadData:? (From: marc hoffman <email@hidden>)
 >Re: NSTableView "sometimes" doesn't repaint on reloadData:? (From: "Michael Ash" <email@hidden>)
 >Re: NSTableView "sometimes" doesn't repaint on reloadData:? (From: marc hoffman <email@hidden>)

  • Prev by Date: Re: NSTableView "sometimes" doesn't repaint on reloadData:?
  • Next by Date: Re: NSTableView "sometimes" doesn't repaint on reloadData:?
  • Previous by thread: Re: NSTableView "sometimes" doesn't repaint on reloadData:?
  • Next by thread: Re: NSTableView "sometimes" doesn't repaint on reloadData:?
  • Index(es):
    • Date
    • Thread