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:54 PM, Trent Jacobs <[email protected]> wrote:
> Thanks Kyle. I am observing for the event and I catch when it happens, and it's in this event handler that I would reload the tableview. I know (from debugging and analysis) that the order shown on the tableview is different to the order in the arraycontroller it's bound to. I'm really confused as to why calling reloadData isn't refreshing the table.

I would not be surprised if NSTableView ignores it if it has been
bound. Or perhaps it's working fine but the private NSTableBinder (or
whatever it's called) object that -[NSTableView
bind:toObject:withKeyPath:options:] creates to actually do the KVO
observations on the array controller is now being lazier than it was
before.

> Your suggestion below is good and in hindsight would have been a good idea, but I'm not sure it would solve the refreshing issue?

I'm recommending you treat the disease, not its symptoms.

--Kyle Sluder
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.