Re: How to get NSTableView to notice a change in NSTableDataModel
Re: How to get NSTableView to notice a change in NSTableDataModel
- Subject: Re: How to get NSTableView to notice a change in NSTableDataModel
- From: Corbin Dunn <email@hidden>
- Date: Fri, 27 May 2005 11:11:58 -0700
I have an NSTableView. The values in my NSTableDataModel change.
Specifically, I add a new row. How do I get NSTableView to update
its display?
Try noteNumberOfRowsChanged (also, see the docs for more info about
it). But, are you using bindings to display your data, or a normal
datasource? If you are using bindings, it sounds like you aren't
sending out the proper KVO messages when add a new item.
I tried calling [tableView reloadData], but that just redisplays
the visible rows. It doesn't pick up the fact that the number of
rows changed.
I believe that should have worked...
-corbin
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden