On Thu, 19 May 2011 15:32:07 -0700, Greg Parker said:

>There are several cases involved here:
>
>1. You may use an instance on any thread, as long as every use is
>synchronized such that only one thread uses that instance at a time.
>2. You may create an instance on any thread, and must not use it on any
>other thread (with or without synchronization).
>3. Something else.
>
>The section "Thread-Unsafe Classes" does not distinguish among these
>cases. For example, NSMutableData is #1, NSAutoreleasePool is #2, and
>NSArchiver is #3.

Ah, brilliant!  Is there documentation that does make those
distinctions?  It says "Check the class documentation for additional
details" but I click the link for NSMutableData for example and the word
'thread' does not appear on that page.

Having more granular categorizations is really needed, and apparently lacking.

--
____________________________________________________________
Sean McBride, B. Eng                 [email protected]
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

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]

Reply via email to