Re: NSTableDataSources and multi-threading
Re: NSTableDataSources and multi-threading
- Subject: Re: NSTableDataSources and multi-threading
- From: Sean Gilbertson <email@hidden>
- Date: Thu, 6 Nov 2003 02:17:55 -0600
I've attached the source code I mentioned last time (oops).
Also, I think that overriding the NSTableView methods would be
pointless, as it would simply re-pose the same problem: making sure the
data is trustworthy between numberOfRows and objectValue. Since these
calls are unpredictable and nonlinear, my original idea of trying to
lock before numberOfRows and unlocking after objectValue, would not be
a solution! My hope now, is that Shawn's idea of running
performSelectorOnMainThread: will work for me. I'll have to give it a
shot, and hope that it exists because of issues like mine, though I'm
skeptical.. I don't know that Cocoa will finish view redraws before
executing my code.
- Sean
[demime 0.98b removed an attachment of type application/octet-stream which had a name of NSTableView.m]
_______________________________________________
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.