bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: run NSApllication in an other thread


From: Julien Isorce
Subject: Re: run NSApllication in an other thread
Date: Tue, 24 Mar 2009 20:27:04 +0100

Hi,

I have not tested on MacOSX but it works fine on gnustep.
I am using glib (gnome) for threads (GThread).
Note that glib != GTK.

http://library.gnome.org/devel/glib/2.20/glib-Threads.html#g-thread-create
http://library.gnome.org/devel/glib/2.20/glib-Threads.html#g-thread-join

I am not a fan of gnome library, I prefer Qt, but I had some restrictions in my project.
So I advise you to use Qt if you can.

I let you know if I can test it on MacOSX, maybe in one month.

Sincerely

Julien


2009/3/24 Marcus Crestani <crestani@informatik.uni-tuebingen.de>
Julien,

I saw your posting last month on bug-gnustep.  Currently, I am hitting
the same problem as you were: I need to run NSApp in another thread.

>>> --Second, "GSRegisterCurrentThread()" is a function specific to
>>> GNUstep.  And this function is not available using Apple developper
>>> environment. So I will not be able to compile my code in there.  Any
>>> comment?

>> I don't know how you would achieve your aim on MacOS.  Possibly you
>> can just run the application run loop in a secondary thread there
>> ... I don't know if that works.

> I will try just same code but without calling
> GSRegisterCurrentThread(). I let you know if that works.

Did you get it to work on MacOSX?  What thread library did you use?

Thanks,
--
Marcus


reply via email to

[Prev in Thread] Current Thread [Next in Thread]