The Threading Programming Guide states:
http://developer.apple.com/documentation/Cocoa/Conceptual/Multithreading/ThreadSafetySummary/chapter_950_section_2.html#//apple_ref/doc/uid/10000057i-CH12-SW4
<<... Drawing from secondary threads is thread-safe as long as you
bracket drawing calls with calls to lockFocusIfCanDraw and
unlockFocus.>>
I want to draw from a secondary thread. Do they talk here about
drawing
done with [NSView display]? If not this, what do they mean here by
drawing?
Later the page states:
<<If a secondary thread of an application wants to cause portions
of the view to be redrawn on the main thread, it must not do so
using methods like display, setNeedsDisplay:, setNeedsDisplayInRect:,
or setViewsNeedDisplay:. Instead, it should send a message to
the main thread or call those methods using the
performSelectorOnMainThread: method instead.>>
I do *not* want drawing to happen on the main thread, so I assume
this latter paragraph is not applicable in my situation. Or is it? Are
the fore-mentioned methods thread safe? Is the [NSImage setImage:]
method thread safe?
Is the list of thread safe/unsafe methods?
Regards,
Mike
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
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]