Re: Refreshing of NSTableView with Snow Leopard
Kyle Sluder <[email protected]>
| Newsgroups | gmane.comp.macosx.devel |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Jan 4, 2010 at 1:17 PM, Trent Jacobs <[email protected]> wrote: > I'm having some trouble with refreshing my table views in Snow Leopard. I have a core data app with a NSTableView bound to a NSArrayController. In some situations the NSArrayController will get sorted externally and I need the table to refresh to show the new order. Sounds like this resorting is not happening in a KVO-compliant manner. Also, if your data doesn't really have an intrinsic order, you should probably consider using a sort descriptor, or maybe moving your sorting logic to an NSArrayController subclass and implementing -arrangeObjects: accordingly, rather than sorting the array controller's content. --Kyle Sluder