Need some help with classes

Discussion in 'iOS Programming' started by Nickrahm, Apr 26, 2012.

  1. Nickrahm macrumors newbie

    Joined:
    Apr 26, 2012
    #1
    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!
     
  2. cMacSW macrumors regular

    Joined:
    Mar 20, 2006
    #2
    I'd suggest looking at this documentation

    In particular the Delegation and Model-View-Controller sections
     
  3. Nickrahm thread starter macrumors newbie

    Joined:
    Apr 26, 2012
    #3
    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?
     
  4. cMacSW macrumors regular

    Joined:
    Mar 20, 2006
    #4
    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.
     

Share This Page