RE: drawing NOW in a callback, boom!
RE: drawing NOW in a callback, boom!
- Subject: RE: drawing NOW in a callback, boom!
- From: "Jonathan E. Jackel" <email@hidden>
- Date: Wed, 5 Jun 2002 09:56:16 -0400
Yes, that's really what I meant -- that cross-thread drawing requires a lot
of care, while not strictly verboten. As the docs say, "It is commonly
believed that 'the Foundation is thread-safe and the Application Kit is
not.' However, this statement is a gross generalization and can be
misleading. Each has thread-safe and thread-unsafe portions."
http://developer.apple.com/techpubs/macosx/Cocoa/TasksAndConcepts/Programmin
gTopics/Multithreading/Tasks/appkit.html#BAJJDIHH
Jonathan Jackel
>
Jonathan E. Jackel wrote:
>
> You're not supposed to touch the GUI from a thread other than the main
>
> thread. This has been discussed ad nauseum.
>
> Jonathan
>
>
>
>> > I'm redrawing a view from a callback in a thread and crashing.
>
>> > I'm not sure why I'm crashing.
>
>
While I agree that the original poster's problem is likely due to
>
incautious cross-thread drawing,
>
it is NOT true that it is verboten to "touch the GUI from a thread other
>
than the main thread".
_______________________________________________
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.