I'm checking the source code from mailcore 2 sample demo. The IOS project has a class 'MCOMessageView.mm'. It's a very good helper class with a webview and a few delegates for html rendering. So why use 'mm' as its file extension since it doesn't contain any c++ code.
Why In Mailcore2 Sample the 'MCOMessageView' file is a c++ file instead of objective c one?
290 Views Asked by fans3210 At
2
There are 2 best solutions below
Related Questions in IOS
- URLSession requesting JSON array from server not working
- Incorrect display of LinearGradientBrush in IOS
- Module not found when building flutter app for IOS
- How to share metadata of an audio url file to a WhatsApp conversation with friends
- Occasional crash at NSURLSessionDataTask dataTaskWithRequest:completionHandler:
- Expo Deep linking on iOS is not working (because of Google sign-in?)
- On iOS, the keyboard does not offer a 6-character SMS code
- Hi, there is an error happened when I build my flutter app, after I'm installing firebase packages occurs that error
- The copy/paste functionalities don't work only on iOS in the Flutter app
- Hide LiveActivityIntent Button from Shortcuts App
- While Running Github Actions Pipeline: No Signing Certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID
- Actionable notification api call not working in background
- Accessibility : Full keyboard access with scroll view in swiftui
- There is a problem with the request entity - You are not allowed to create 'iOS' profile with App ID 'XXXX'
- I am getting "binding has not yet been initialized" error when trying to connect firebase with flutter
Related Questions in OBJECTIVE-C
- How to control the volume of an iPhone programmatically in objective-c
- Occasional crash at NSURLSessionDataTask dataTaskWithRequest:completionHandler:
- How to set value the descriptor of iOS BLE in Objective-C?
- Unexpected #selector() Behavior in Swift-Objective-C Interop?
- In what context can we use an unqualified #selector() expression in Swift?
- AVPictureInPictureController crashes during initialization
- How to use pow() in Objective-C?
- How to change the image on the MGSwipeButton in MGSwipeTableCell
- Using sort descriptors in Outline View
- Why is my Swift function not printing from inside the dataTask closure?
- Using UICollectionViewCell with IBOutlet
- Undefined symbol: _OBJC_CLASS_$_ only on simulator
- Why can't I receive a notification sent from Camera Extension(Swift) to an observer application (obj-c++)
- Behavior of __block modifier in objc
- Inserting subview into view where I've added subviews and sublayers
Related Questions in EMAIL
- Email Verification python eror
- Invalid format for email address in WordPress on Azure app service
- How to create an JSOUP element from byte array image (Load from Database)
- How can I look this email address
- Gsheet - Automatically send an email using a date & time in a Cell
- Install Postfix Mail Server
- Error 553 5.7.2 [TSS09] When Sending Emails to Yahoo and Outlook
- How to make my form send the submitted info to my email
- Cpanel filter encoding utf-8?
- Thunderbird Importing Emails imports 0 emails
- Python & Django web app - auto emails not sending
- Allowing any member of a dynamic group to send as from a shared mailbox
- How to fix "search in state AUTH" errror
- Rewriting CSS in MSO conditional comment doesn't work
- Sendgrid attachments in C#
Related Questions in MAILCORE2
- MailCore2 - 'libetpan/libetpan.h' file not found
- MailCore 2 works on simulator but not on device
- Mailcore 2 unable to fetch messages in iOS swift
- What logging does mail core have to help me track down the source of "Domain=MCOErrorDomain Code=3 'Unable to parse response from server.'"
- Mailcore2 "unable to parse response from server" – how can I log the messages to/from the server so I can figure out what isn't parsing?
- How to seperate email body from a rendered thread through IMAP?
- I tried to connect and fetch mails using mailcore2 in iOS. But I got error
- how to fetch emails using Mailcore2 in ios swift?
- MAILCORE2 - A stable connection to the server could not be established
- How to send a reply to an email using MailCore2 in Swift?
- Building Mailcore2 on linux
- Implement MCOHTMLRendererIMAPDelegate in MailCore2 using Swift
- My react native android app got crashed when loggedin user trying to replay any mail for first time using react-native-mailcore library
- How to pass data from block in one view controller to another
- Check if connection for imapsession is established
Related Questions in MAILCORE
- MailCore2 - 'libetpan/libetpan.h' file not found
- MailCore 2 works on simulator but not on device
- Building Mailcore2 on linux
- My react native android app got crashed when loggedin user trying to replay any mail for first time using react-native-mailcore library
- Unable to retrieve extra headers - Mailcore
- How to fetch the inbox from email agent in swift/objective c using mailcore framework or Any framework?
- mailcore2 how to implement it in swift
- can't get header subject using POPFetchHeaderOperation
- mailcore2 163.com/126.com NO SELECT The login is not safe
- MailCore / MailCore2 library not loaded - Failed IPv6 compatibility - Swift
- Swift: Getting error "A stable connection to the server could not be established."
- Why In Mailcore2 Sample the 'MCOMessageView' file is a c++ file instead of objective c one?
- Unable to signin gmail without password
- [IOS ]archiving MCOMessageBuilder objects
- Ios Mailcore canopenurl
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Some developers, used to deal with ObjC++, use the .mm extension by default for their ObjC class, even if no C++ code is needed, so that they can use ObjC++ later on if needed.
MailCore uses ObjC++ by default, so .mm extension for class by default even if at their is no C++ code in it at the time, it can be added in the future.
It as virtually no cost a run time, so it's.. just a way of doing things. And since LVVM, it has but little cost at build time
Another possibility is that their was C++ in a previous version of the file and, commit after commit, C++ code was replace and they didn't bother renaming the class because they can still add some C++ code in the future and they want to keep their hand free.