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 update (filter) the contents if the array, and call reloadData:, when they do.

most of the time, this works fine, and the table view updates instantaneously. however, some (rare) times, this does not happen, and the view of the grid does not change when i call reloadData: - however, when i scroll or even just click on a row, the rows repaint with the new values, or new rows appear where previously where none (if the data grew).

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?

thanx,


Yours,

marc hoffman


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?

Cheers,
        Andrew

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to