Re: Cocoa multithreading in C (terrible idea, isn't it?)
Re: Cocoa multithreading in C (terrible idea, isn't it?)
- Subject: Re: Cocoa multithreading in C (terrible idea, isn't it?)
- From: John Stiles <email@hidden>
- Date: Wed, 21 Dec 2005 09:35:10 -0800
Christos Papachristou wrote:
The scheme for the library is to handle all events and user requests,
as well as drawing routines in the secondary thread. Everything works
well when the appllication defines an int alt_main(argc,argv) and the
library the real main, which launces the application on a secondary
thread and the window system remains on the primary one. Yet this is
not very elegant.
I think that, while not the most inelegant, this is probably the best
solution for you. Anything less is bending the rules of Cocoa
multithreading and may be unstable now or in the future.
Or, alternatively, you might try using "performSelectorOnMainThread" to
get on to the main thread when necessary.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden