在百度中苦苦搜寻无果之后,转而把希望寄托到了google,第一条结果就是我想要的答案:
53
7
|
Since I started learning Objective C and Cocoa, I've been wondering why they have chosen the extension .m for the implementation files - was it supposed to mean something, or was it just a random letter? Does anyone know? I couldn't find such information anywhere on Google... |
||||
|
119
|
Today most people would refer to them as "method files", but
(from the book "Learn Objective-C on the Mac" by Mark Dalrymple and Scott Knaster, page 9) EDIT: To satisfy an itch I emailed Brad Cox, the inventor of Objective-C, about the question and he answered with this single line:
Here's the email as visual prove: |
||||||||||||||
|
6
|
From the first Google result (Wikipedia entry) for "objective c" file extension:
|
||
2
|
.m files contain the (m)ethods. Possible reason? |
||
2
|
It stands for "methods". From the comp.lang.objective-C FAQ:
|