views:

212

answers:

4

Exact duplicate:

Why do Objective C files use the .m extension?

I'm thinking .h stands for header. I suppose .m could stand for main, but I don't know. Do any of you actually know this?

Just to clarify, I know what goes in which file, i.e. I know the purpose of each filetype, I'm just curious if the filetype symbol has a meaning.

A: 

right, .h stands for the header file. .m is for your code like .cpp in c++

regards, buk

buk
+1  A: 

Look at this other question:

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

Sergio Acosta
Thanks :) should have done a more extensive search on this site.
tmadsen
StackOverflow is amazing. Honestly, I was about to answer your question and was googling for sources to cite. But in the top search results I found the link to the already answered question. =)
Sergio Acosta
+2  A: 
  • h - header
  • m - method
Greg
hmm, i thought it was "H"eader and i"M"plementation
Kris
+1  A: 

.h stands for header while .m stands for implementation

Martin Clarke