[Qt-interest] make moc generate .mm file?

Scott Aron Bloom Scott.Bloom at onshorecs.com
Wed Oct 26 18:40:11 CEST 2011


I think separating it out completely, will give you more portable cod...

If you still need to compile the results of moc through a objective C
compiler, then use the include...

Scott

-----Original Message-----
From: qt-interest-bounces+scott.bloom=onshorecs.com at qt.nokia.com
[mailto:qt-interest-bounces+scott.bloom=onshorecs.com at qt.nokia.com] On
Behalf Of Israel Brewster
Sent: Wednesday, October 26, 2011 9:33 AM
To: Thiago Macieira
Cc: qt-interest at qt.nokia.com
Subject: Re: [Qt-interest] make moc generate .mm file?

Oh, I'm sure the moc file is needed - just not by this particular .mm
file, as it doesn't deal with any Qt related stuff (it's only purpose in
life is to open a native file save dialog). Of course, there could be
something else going on there that I am not aware of :-) That said, if
this suggestion is the best approach (as opposed to separating out the
objective-c stuff completely), then it is certainly easy enough to
implement.

On Oct 25, 2011, at 10:11 PM, Thiago Macieira wrote:

> On Tuesday, 25 de October de 2011 15.21.26, Israel Brewster wrote:
>> Interesting approach. I'll have to try that. Though it does strike me

>> as somewhat kludgy, given that the mm file has no need of the moc
file.
> 
> If it helps you justify this, yes, it does need the .moc file. There 
> are many cases of them being included at the end. It improves the
optimisation.
> 
> --
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
>   Software Architect - Intel Open Source Technology Center
>      PGP/GPG: 0x6EF45358; fingerprint:
>      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358 
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest

-----------------------------------------------
Israel Brewster
Computer Support Technician II
Era Alaska
5245 Airport Industrial Rd
Fairbanks, AK 99709
(907) 450-7250 x7293
-----------------------------------------------




More information about the Qt-interest-old mailing list