Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Nickrahm

macrumors newbie
Original poster
Apr 26, 2012
2
0
Hello everyone!

I'm a complete newbie when it comes to programming and i would like to ask someone if the could explain a couple of things regarding classes(?). I have created a project with a Master-Detail Application template and what i would like to ask is if someone could explain to me what:
AppleDelegate.h
AppleDelegate.m
MasterViewController.h
MasterViewController.m
DetailViewController.h
DetailViewController.m
main.m
is? What i want to know is if this is actually classes or is it called something else? And if someone could very briefly explain to me what each of them do. If anyone knows something about this is would greatly appreaciate an answer!!

Thanks!
 
Thanks man, i'll check it out!

So, for example, could you say that AppleDelegate.h is a headerfile and it's function is to make a program act on behalf of, or in coordination with another object, and AppleDelegate.m is the same but it contains methods?
 
AppleDelegate.h is a headerfile and it's function is to make a program act on behalf of, or in coordination with another object, and AppleDelegate.m is the same but it contains methods

You kind of have it, iOS apps will have an AppDelegate this class consisting of a header (.h) and implementation (.m) file will act on behalf of the Application. Typically this file will handle initialization and clean up for the App.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.