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

Scott Aron Bloom Scott.Bloom at onshorecs.com
Tue Oct 25 19:34:59 CEST 2011


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

-----------------------------------------------

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20111025/dee42a27/attachment.html 


More information about the Qt-interest-old mailing list