简体   繁体   中英

How can I call Objective-C code (specifically code from Mac system libraries) from C++/Qt?

Also, what is the difference between a .m and a .mm file? Or is that just some convention that Nokia uses for Qt?

.m refers to an Objective-C file, whereas .mm is an Objective-C++. I'm not sure whose convention that is.

As for calling Objective-C from C++, this might help:

http://sseyod.blogspot.com/2009/02/objective-c.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM