On Sat, Aug 30, 2008 at 7:30 PM, marc hoffman <[EMAIL PROTECTED]> 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 (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]