Re: threads and GUI
Re: threads and GUI
- Subject: Re: threads and GUI
- From: Jean-Daniel Dupas <email@hidden>
- Date: Tue, 1 Sep 2009 09:53:43 +0200
This is not a limitation, this is a design decision.
You MUST not call any UI method in a thread other than the main thread.
As I don't know if you're talking about Carbon or Cocoa, I can't give
you other help than: read the doc.
Le 1 sept. 2009 à 09:42, tahome izwah a écrit :
I don't think this is a limitation on OS X.
I am invoking a NSAlert from a separate thread in my plug in (created
via -detachNewThreadWithSelector) and don't have any problem with
this.
...Is this a Carbon UI by any chance?
--th
2009/9/1 john smith <email@hidden>:
Hi,
I'm doing a Windows->OSX port of a plug-in, which is creating some
extra
threads, and is creating message boxes and browse-for-folder type
dialogs
from it.
I implemented the threads using the posix calls (pthread_*).
But... whenever I try to make a messagebox, or any type of standard
OS
dialog for that matter, the plug-in crashes...
At this point I'm thinking it's an OSX limitation, and that only
threads
with an event queue can create standard OS boxes. Is this true?
Can anyone give me a hand here? Any insight would be appreciated,
thanks.
Rgds,
Michael Olsen
PhonoXone
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
-- Jean-Daniel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden