2

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 file type.) I'm merely curious if the file extension name has any particular meaning.

Community
  • 1
  • 1
tmadsen
  • 941
  • 7
  • 14

3 Answers3

5
  • h - header
  • m - method
Greg
  • 316,276
  • 54
  • 369
  • 333
2

.h stands for header while .m stands for implementation

Martin Clarke
  • 5,636
  • 7
  • 38
  • 58
0

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

regards, buk

sjm
  • 301
  • 2
  • 3
  • 10