• 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: "Kyle Sluder" <email@hidden>
  • Date: Sat, 30 Aug 2008 21:33:22 -0400

On Sat, Aug 30, 2008 at 7:30 PM, marc hoffman <email@hidden> wrote:
> right - but it wouldn't constantly requery for the row count, right? so if i
> tell it "you got 3 rows" and then later, when more rows get added, the
> reloadData call fails, the view would stll assume it has three rows only.
> those rows would redraw anew/correct when touched, but clicking int empty
> space" would not draw row #5?

There's no reason to assume that NSTableView remembers the last value
it got from -numberOfRowsInTableView:.  In fact, the documentation
indicates that NSTableView does in fact ask for this information very
frequently; not being privy to the internal details, I wouldn't be
surprised if NSTableView asks for the number of rows every time it
redraws.

--Kyle Sluder
_______________________________________________

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

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: (Newbie) How do Multiple NSWindowControllers find MyDocument?
  • Next by Date: Simple Array of Strings Binding Question
  • Previous by thread: Re: NSTableView "sometimes" doesn't repaint on reloadData:?
  • Next by thread: (Newbie) How do Multiple NSWindowControllers find MyDocument?
  • Index(es):
    • Date
    • Thread