• 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: How to: NSTableView redisplay
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to: NSTableView redisplay


  • Subject: Re: How to: NSTableView redisplay
  • From: Laurent Daudelin <email@hidden>
  • Date: Tue, 28 Feb 2012 23:03:16 -0800

On Feb 28, 2012, at 20:39, Erik Stainsby wrote:

> Learning a new language makes me humble.
>
> 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];
> }

We would really need to see how you implemented your NSTableViewDataSource methods to have a better idea...

-Laurent.
--
Laurent Daudelin
AIM/iChat/Skype:LaurentDaudelin 				http://www.nemesys-soft.com/
Logiciels Nemesys Software					email@hidden


_______________________________________________

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: 
 >How to: NSTableView redisplay (From: Erik Stainsby <email@hidden>)

  • Prev by Date: Re: How to: NSTableView redisplay
  • Next by Date: Re: How to: NSTableView redisplay
  • Previous by thread: Re: How to: NSTableView redisplay
  • Next by thread: Re: How to: NSTableView redisplay
  • Index(es):
    • Date
    • Thread