Facing problem while importing .h file in the main file in Objective C
Hi,
I'm new to Objective C. I have started learning Objective C on windows. I have created 3 files :
1. Temp.h file which contains the interface for Temp class
2. Temp.m file which contains the implementation for Temp class
3. TempMain.m file which contains the int main() program which makes use of the Temp class.
Now, on most of the sites I have referred that in TempMain.m file, I should import the Temp.h file, not the Temp.m file. But if I don't import the Temp.m file then it is not getting compiled. And if I import the Temp.m file then I can't apply the concept of Extension. Any help will be appreciated..
Thanks and Regards,
Vrunda Variya
|