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

Israel Brewster israel at frontierflying.com
Wed Oct 26 22:39:25 CEST 2011


Makes sense. That was one thing I was worried about. I was, however, able to separate it sufficiently that the code should now compile on any platform Qt supports. In theory, at least :-) Thanks for the suggestions!

On Oct 26, 2011, at 8:40 AM, Scott Aron Bloom wrote:

> 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
> -----------------------------------------------
> 
> _______________________________________________
> 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
-----------------------------------------------

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Israel Brewster.vcf
Type: text/directory
Size: 417 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20111026/7db913a0/attachment.bin 
-------------- next part --------------



More information about the Qt-interest-old mailing list