Re: NSTableView reloadData not working?
Re: NSTableView reloadData not working?
- Subject: Re: NSTableView reloadData not working?
- From: Ambroise Confetti <email@hidden>
- Date: Mon, 24 Nov 2003 23:37:08 +0100
Le 24 nov. 03, ` 22:41, Michael Becker a icrit :
>
However, the table is only reloaded after ALL thumbnails are created,
>
whereas the NSLog() command outputs its messages in nice intervals
>
(supposedly everytime an image has been resized).
>
>
Why doesnt the TableView reload each time an image has been resized
>
and added to my ListManager? (I also tried -setNeedsDisplay:YES ...
>
same result)
reloadData calls setNeedsDisplay:YES, and setNeedsDisplay: just marks
the view as needing to be displayed. The actual display operation
occurs at the next run loop iteration.
You can try to force immediate display by using display instead of
setNeedsDisplay:YES. But the best solution would be to have a second
thread compute the thumbnails and notify the main thread each time a
new thumbnail is available. This would enable the user to continue
using your application while thumbnails are being generated.
However, you will have to enable your model classes for multithreading
(by adding locks).
Ambroise
http://www.cellulo.info/
ICQ 4508259
AIM atvaark
[demime 0.98b removed an attachment of type text/directory which had a name of Ambroise Confetti.vcf]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.