Re: How to: NSTableView redisplay
Re: How to: NSTableView redisplay
- Subject: Re: How to: NSTableView redisplay
- From: Jens Alfke <email@hidden>
- Date: Tue, 28 Feb 2012 22:47:08 -0800
On Feb 28, 2012, at 8:39 PM, Erik Stainsby wrote:
> [_rules addObject: rule];
> [table reloadData];
> [table setNeedsDisplay:YES];
IIRC you need to call -noteNumberOfRowsChanged instead, if you've change the number of rows. -reloadData is just for reloading the existing rows.
—Jens
_______________________________________________
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