Re: How to: NSTableView redisplay
Re: How to: NSTableView redisplay
- Subject: Re: How to: NSTableView redisplay
- From: Quincey Morris <email@hidden>
- Date: Tue, 28 Feb 2012 23:08:36 -0800
On Feb 28, 2012, at 20:39 , Erik Stainsby wrote:
> NSTableView - I have an NSTableViewDataSource with an array holding the objects to be represented in the table.
> I add a new object to the array, I call [table reloadData]; and I follow that with [table setNeedsDisplay:YES];
> Bupkiss. Nada. However, when I tap a column header to resort the view, presto. Content.
>
> What am I missing ?
>
> - (void) appendRule:(NSNotification *) note {
> RSTrixieRule * rule = [note object];
> [_rules addObject: rule];
> [table reloadData];
> [table setNeedsDisplay:YES];
> }
1st wild guess: 'table' is an IBOutlet that you forgot to connect and so is nil.
2nd wild guess: you've managed to create 2 table views, and 'table' is connected to the one that isn't actually visible.
_______________________________________________
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