Friday, May 6, 2011

What does .h and .m stand for?

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.

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

    regards, buk

  • Look at this other question:

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

    tmadsen : Thanks :) should have done a more extensive search on this site.
    Sergio Acosta : 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. =)
    • h - header
    • m - method
    Kris : hmm, i thought it was "H"eader and i"M"plementation
  • .h stands for header while .m stands for implementation

0 comments:

Post a Comment