PDA

View Full Version : WhyTheExtension.m ?




zeppenwolf
Nov 18, 2010, 09:59 PM
Does anyone know why they chose "m" for the extension of objC files?

Of course we can see why they couldn't pick "c", or "o", but apart from that, was there any kind of reason for 'm' or did they pick it straight out of a hat? Thx.



autorelease
Nov 18, 2010, 10:12 PM
The consensus seems to be that the "m" stands for "methods" or "messages."

http://stackoverflow.com/questions/652186/why-do-objective-c-files-use-the-m-extension

I thought it stood for "m"plementation, but oh well… :)

Sydde
Nov 18, 2010, 11:32 PM
Well, curses, I had been telling everyone it stood for "McIntosh" (vacuum tubes are awesome).

chown33
Nov 18, 2010, 11:55 PM
Well, curses, I had been telling everyone it stood for "McIntosh" (vacuum tubes are awesome).

And I've been telling everyone it's because Brad Cox is a Virgo:
http://en.wikipedia.org/wiki/Astrological_sign

Littleodie914
Nov 19, 2010, 10:50 AM
I thought it stood for "m"plementation, but oh well… :)That's what I had always assumed as well. :)

zeppenwolf
Nov 19, 2010, 10:52 AM
Ok, that's good enough for me! I just wanted an excuse to prepend some class names with M, and now I think I have the moral right.

Sydde, I can't quite be sure if you're making this reference: you guys probably all know that the apple is a "McIntosh", and a "Macintosh" is really a big raincoat? ( Don't be offended if this is 'no kidding'! )

Sydde
Nov 19, 2010, 12:20 PM
Sydde, I can't quite be sure if you're making this reference: you guys probably all know that the apple is a "McIntosh", and a "Macintosh" is really a big raincoat? ( Don't be offended if this is 'no kidding'! )

No, I refer to very expensive audiophile equipment (http://www.mcintoshlabs.com).

xStep
Nov 19, 2010, 12:37 PM
The consensus seems to be that the "m" stands for "methods" or "messages."

http://stackoverflow.com/questions/652186/why-do-objective-c-files-use-the-m-extension

I thought it stood for "m"plementation, but oh well… :)

For people who didn't actually review the link, the creator of Objective-C was quoted to say "Because .o and .c were taken. Simple as that.".