On 24 aug 2009, at 21.00, Graham Cox wrote:
From that thread I call [tableView reloadData]
Try calling this on the main thread. I think reloadData marks the
table view as needing display, and that should be done on the main
thread.
[tableView performSelectorOnMainThread:@selector(reloadData)
withObject:nil waitUntilDone:NO];
Not only that, it seems very dangerous, if not outright unsafe, to
update the data source for the table view directly from a background
thread. Read more here:
<http://developer.apple.com/documentation/Cocoa/Conceptual/Multithreading
>
Don't miss the Cocoa thread safety summary at the end.
j o a r
_______________________________________________
Cocoa-dev mailing list ([email protected])
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]