I always thought that there was an m in implementation, so it became .m. But most of the sayings on the Internet are the abbreviation of methods or message!
.m file: message file (message, also called implementation file).
The data implementation mechanism of objective-c is the same as the message sending implementation mechanism of smalltalk. Therefore, the code implemented in objective-c is saved in the .m (message) abbreviated suffix file to indicate the role and function of this file. use.
Because .o and .c were taken. Simple as that.
I always thought that there was an m in implementation, so it became .m. But most of the sayings on the Internet are the abbreviation of methods or message!
I have never struggled with this, but I know that the suffix of Objective-C source files is .m. That’s it, why bother?
Why don’t you google this question first before asking it? Answer
.m file: message file (message, also called implementation file).
The data implementation mechanism of objective-c is the same as the message sending implementation mechanism of smalltalk. Therefore, the code implemented in objective-c is saved in the .m (message) abbreviated suffix file to indicate the role and function of this file. use.
method or message