Re: [Interest] Running Qt in a shared library on a Mac

2014-01-24 Thread Till Oliver Knoll
Am 24.01.2014 um 18:21 schrieb Thiago Macieira : > On sexta-feira, 24 de janeiro de 2014 18:19:20, Till Oliver Knoll wrote: >>> I /assume/ that it works, just like it works with Qt. >> >> Well, then it must work with "Cocoa only", too - case solved > > So you *can* run Qt and Cocoa things in a d

Re: [Interest] Running Qt in a shared library on a Mac

2014-01-24 Thread Thiago Macieira
On sexta-feira, 24 de janeiro de 2014 18:19:20, Till Oliver Knoll wrote: > > I /assume/ that it works, just like it works with Qt. > > Well, then it must work with "Cocoa only", too - case solved So you *can* run Qt and Cocoa things in a different thread than main() was run on. However, NSAppli

Re: [Interest] Running Qt in a shared library on a Mac

2014-01-24 Thread Till Oliver Knoll
Am 24.01.2014 um 18:10 schrieb Thiago Macieira : > On sexta-feira, 24 de janeiro de 2014 10:17:50, Till Oliver Knoll wrote: >> Since I /assume/ that you cannot (easily) fool that static >> NSThread:isMainThread method by creating a thread different than with >> NSThread it would still return 'NO',

Re: [Interest] Running Qt in a shared library on a Mac

2014-01-24 Thread Thiago Macieira
On sexta-feira, 24 de janeiro de 2014 10:17:50, Till Oliver Knoll wrote: > Since I /assume/ that you cannot (easily) fool that static > NSThread:isMainThread method by creating a thread different than with > NSThread it would still return 'NO', even within a "POSIX created thread. > And I assume it

Re: [Interest] Running Qt in a shared library on a Mac

2014-01-24 Thread Till Oliver Knoll
Am 24.01.2014 um 10:17 schrieb Till Oliver Knoll : > Am 24.01.2014 um 03:22 schrieb Thiago Macieira : > >> On quinta-feira, 23 de janeiro de 2014 21:47:25, Till Oliver Knoll wrote: >>> For the curious: trying to instantiate an NSApplication within an >>> NSThread does /not/ work (and the same the

Re: [Interest] Running Qt in a shared library on a Mac

2014-01-24 Thread Till Oliver Knoll
Am 24.01.2014 um 03:22 schrieb Thiago Macieira : > On quinta-feira, 23 de janeiro de 2014 21:47:25, Till Oliver Knoll wrote: >> For the curious: trying to instantiate an NSApplication within an >> NSThread does /not/ work (and the same then holds off course for a >> QApplication)! I got indeed an

Re: [Interest] Running Qt in a shared library on a Mac

2014-01-23 Thread Eric Feigenson
Wow, Till, thanks for doing all that legwork! On Jan 23, 2014, at 3:47 PM, Till Oliver Knoll wrote: > Am 23.01.14 18:23, schrieb Till Oliver Knoll: >> ... >> However, I did not find any evidence in the Apple documents so far which >> would indicate that it is technically forbidden to instantia

Re: [Interest] Running Qt in a shared library on a Mac

2014-01-23 Thread Thiago Macieira
On quinta-feira, 23 de janeiro de 2014 21:47:25, Till Oliver Knoll wrote: > For the curious: trying to instantiate an NSApplication within an > NSThread does /not/ work (and the same then holds off course for a > QApplication)! I got indeed an assert, probably the same which was > already mentioned

Re: [Interest] Running Qt in a shared library on a Mac

2014-01-23 Thread Till Oliver Knoll
Am 23.01.14 18:23, schrieb Till Oliver Knoll: > ... > However, I did not find any evidence in the Apple documents so far which > would indicate that it is technically forbidden to instantiate an > NSApplication For the curious: trying to instantiate an NSApplication within an NSThread does /not/

Re: [Interest] Running Qt in a shared library on a Mac

2014-01-23 Thread Till Oliver Knoll
Am 23.01.2014 um 10:49 schrieb Sze Howe Koh : > On 23 January 2014 17:11, Till Oliver Knoll > wrote: >> However "GUI thread" is a more correct term, since - AFAIK - the instance of >> QApplication does not necessarily have to "live" in the "main thread": ... > > This is true on Windows, Linux,

Re: [Interest] Running Qt in a shared library on a Mac

2014-01-23 Thread Eric Feigenson
Thanks Sze-Howe! That's what I thought, and that stackoverflow posting gave me some other things to try. Thanks! -Eric On Jan 23, 2014, at 4:49 AM, Sze Howe Koh wrote: > On 23 January 2014 17:11, Till Oliver Knoll > wrote: >> However "GUI thread" is a more correct term, since - AFAIK - the

Re: [Interest] Running Qt in a shared library on a Mac

2014-01-23 Thread Sze Howe Koh
On 23 January 2014 17:11, Till Oliver Knoll wrote: > However "GUI thread" is a more correct term, since - AFAIK - the instance of > QApplication does not necessarily have to "live" in the "main thread": you > should be able to instantiate a new thread and instantiate QApplication in > that thread.

Re: [Interest] Running Qt in a shared library on a Mac

2014-01-23 Thread Till Oliver Knoll
Am 23.01.2014 um 03:15 schrieb Eric Feigenson : >> I know that on the Mac, all GUI things need to happen in the main >> thread, AKA "GUI thread". We'll come to that in a moment... >> so that the QApplication would have to run in the main thread. But if I do >> a QApplication.exec() on

[Interest] Running Qt in a shared library on a Mac

2014-01-22 Thread Eric Feigenson
Hello list... I'm new here, so be gentle ;) I have a question that was posted to the Qt forums here: http://qt-project.org/forums/viewthread/37413/ I learned some things there, but was also directed here for more wisdom. Here's as brief a summary as I can muster... see the posting for details: