• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSTableDataSources and multi-threading
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: NSTableDataSources and multi-threading
  • Next by Date: Re: window above main menu bar
  • Previous by thread: Re: NSTableDataSources and multi-threading
  • Next by thread: Ship my Frameworks inside my App Bundle...
  • Index(es):
    • Date
    • Thread