Re: NSOutlineView threading problem
Re: NSOutlineView threading problem
- Subject: Re: NSOutlineView threading problem
- From: j o a r <email@hidden>
- Date: Mon, 16 Jun 2008 08:17:58 -0700
On Jun 16, 2008, at 7:44 AM, David wrote:
While I've been investigating this, I have found more documentation on
thread safety issues in the "Threading Programming Guide". I'd read it
before but it helps to re-read. It says that NSView classes ARE thread
safe... to an extent.
Very interesting that it says that NSView is "generally thread-safe",
but then immediately afterwards limits you to "perform other
operations [...] only from the main thread". Note the "other", which
is as broad in scope as the "generally" used earlier. I'm going to
file an enhancement request for improved documentation here.
I think that what they want to call out there is that you can draw
from background threads. I could be wrong, but I don't think that you
should read more into it than that.
Also note that just because there are some operations on the NSView
class that are thread safe, that doesn't mean that subclasses have
even the same level of thread safety - unless explicitly called out in
the documentation.
j o a r
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden