Re: NSTableView "sometimes" doesn't repaint on reloadData:?

2008-09-02 Thread Corbin Dunn
On Aug 30, 2008, at 6:33 PM, Kyle Sluder wrote: On Sat, Aug 30, 2008 at 7:30 PM, marc hoffman <[EMAIL PROTECTED]> wrote: right - but it wouldn't constantly requery for the row count, right? so if i tell it "you got 3 rows" and then later, when more rows get added, the reloadData call fails,

Re: NSTableView "sometimes" doesn't repaint on reloadData:?

2008-08-30 Thread Kyle Sluder
On Sat, Aug 30, 2008 at 7:30 PM, marc hoffman <[EMAIL PROTECTED]> wrote: > right - but it wouldn't constantly requery for the row count, right? so if i > tell it "you got 3 rows" and then later, when more rows get added, the > reloadData call fails, the view would stll assume it has three rows only

Re: NSTableView "sometimes" doesn't repaint on reloadData:?

2008-08-30 Thread Andrew Merenbach
On Aug 30, 2008, at 4:42 PM, marc hoffman wrote: Andrew, Michael, So then the question is, why does this -reloadData call fail? The most obvious reason would be that its target is nil. In any case, step through the code in question in the debugger, and hopefully the reason shall be revea

Re: NSTableView "sometimes" doesn't repaint on reloadData:?

2008-08-30 Thread marc hoffman
Andrew, Michael, So then the question is, why does this -reloadData call fail? The most obvious reason would be that its target is nil. In any case, step through the code in question in the debugger, and hopefully the reason shall be revealed. i got it: the problem was actually my tableVi

Re: NSTableView "sometimes" doesn't repaint on reloadData:?

2008-08-30 Thread marc hoffman
Michael, thanx for the extensive reply. any idea what might be happening? i mean, obviously the call to reloadData: takes fine, else if the table had - say - 3 rows before, it would not know to paint row five when i click it, right? That's actually not obvious at all. You must remember th

Re: NSTableView "sometimes" doesn't repaint on reloadData:?

2008-08-30 Thread Michael Ash
On Sat, Aug 30, 2008 at 5:08 PM, marc hoffman <[EMAIL PROTECTED]> wrote: > Hi, > > im seeing an odd issue, maybe someone has an idea? i have an NSTableView on > my form, populated from an array by implementing the > numberOfRowsInTableView: and objectValueForTableColumn:row: methods. i have > some

Re: NSTableView "sometimes" doesn't repaint on reloadData:?

2008-08-30 Thread marc hoffman
Andrew, Greetings, Marc, I've seen this behavior when calling -reloadData from a thread other than the main thread. Is it possible that that's happening in your case? i'm only ever changing the data in response to an action received from a UI element - a search box or a menu item selec

Re: NSTableView "sometimes" doesn't repaint on reloadData:?

2008-08-30 Thread Andrew Merenbach
On Aug 30, 2008, at 2:08 PM, marc hoffman wrote: Hi, im seeing an odd issue, maybe someone has an idea? i have an NSTableView on my form, populated from an array by implementing the numberOfRowsInTableView: and objectValueForTableColumn:row: methods. i have some I elements on my form that

NSTableView "sometimes" doesn't repaint on reloadData:?

2008-08-30 Thread marc hoffman
Hi, im seeing an odd issue, maybe someone has an idea? i have an NSTableView on my form, populated from an array by implementing the numberOfRowsInTableView: and objectValueForTableColumn:row: methods. i have some I elements on my form that update (filter) the contents if the array, and c