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

Israel Brewster israel at frontierflying.com
Wed Oct 26 01:23:35 CEST 2011


Sounds good. Turns out it was fairly easy to segregate the Objective C stuff out, which also has the benefit (with the help of some ifdefs and .pro file modifications) of restoring cross-platform compatibility out-of-the-box. Thanks.

On Oct 25, 2011, at 9:34 AM, Scott Aron Bloom wrote:

> I had a project a bit ago, where I got that working, it was a major hack in the qmake system… I have since moved off the project, and use cmake exclusively, which would make it easier…
>  
> However, as a policy, to NOT do that (because of the major hack it required) we did what ever we could to split Objective C/C++ code into its own area, and not part of the QObjet chains
>  
> Scott
>  
> 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: Tuesday, October 25, 2011 10:29 AM
> To: qt-interest at qt.nokia.com
> Subject: [Qt-interest] make moc generate .mm file?
>  
> Is there any way to get moc to generate a .mm file rather than a .cpp file? I have a file which includes some Objective-C code out of necessity of complying with the possible Mac App Store sandbox requirements (as I can't use Qt's open/save dialogs). However, if moc generates a .cpp file, it won't compile. Changing the extension on this file to .mm fixes things and allows compilation again, but of course it is changed back next time the file is generated. If it could be generated with a .mm extension, then everything would be fine. Is there any way to fix this?
>  
> -----------------------------------------------
> 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 --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20111025/0a470472/attachment.html 
-------------- 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/20111025/0a470472/attachment.bin 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20111025/0a470472/attachment-0001.html 


More information about the Qt-interest-old mailing list