Yes, you got it. .h stands for "header" and is the place where you make your 
declarations, .m stands for "module" and is where the definitions take place. 
You can encounter also .mm exetension. In these file you can mix Objective-C an 
C++ language.

Luca.
----------------------------------------
> From: [EMAIL PROTECTED]
> To: [email protected]
> Date: Tue, 18 Mar 2008 00:45:17 +1300
> CC: 
> Subject: Simple question
> 
> I have studying Cocoa - objective-C by myself for a few days ( im  
> entirely new to programming). There's a question I wanna know about.
> 
> When you create a project in XCode, and add a new class, does anyone  
> know what .h file and .m respectively for?
> 
> I mean if they have their own jobs in the coding, I wanna know like .h  
> for declare the varibles and .m for implementing?
> 
> 
> 
> _______________________________________________
> 
> Cocoa-dev mailing list ([email protected])
> 
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/luca_ciciriello%40hotmail.com
> 
> This email sent to [EMAIL PROTECTED]

_________________________________________________________________
Free games, great prizes - get gaming at Gamesbox. 
http://www.searchgamesbox.com_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to