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 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]
