Re: drawing NOW in a callback, boom!
Re: drawing NOW in a callback, boom!
- Subject: Re: drawing NOW in a callback, boom!
- From: Marcel Weiher <email@hidden>
- Date: Wed, 5 Jun 2002 09:44:58 +0200
On Wednesday, June 5, 2002, at 03:15 Uhr, Paul Cezanne wrote:
At 6:44 PM -0400 6/4/02, 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.
Really?
http://developer.apple.com/techpubs/macosx/Cocoa/TasksAndConcepts/ProgrammingTopics/
Multithreading/Tasks/appkit.html
suggests otherwise, explicitly stating that NSBezierPath was thread
safe.
Now, just to make life harder, I'm not using NSThread, I'm using
pthreads (the threaded part of my application, actually a whole lot of
it, is cross platform, and no, we have looked into GnuStep yet).
1. You have to spawn at least one NSThread in order to get
thread-safety of various components.
2. NSApplication has a somewhat suggestively named
"detachDrawingThread..." method
Marcel
--
Marcel Weiher Metaobject Software Technologies
email@hidden www.metaobject.com
Metaprogramming for the Graphic Arts. HOM, IDEAs, MetaAd etc.
_______________________________________________
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.