EMController.m

At this point, the EMController.m file is pretty small, and it only allocates and deallocates memory for the program to run. Many more functions will be added in later which will communicate with the EMResponder. The comments should hopefully explain most of what is going on so far. Here is the file for EMController.m so far.
EMController.m.

    #import "EMController.h"

    @implementation EMController

    // -------------------------------------------------------
    // (id)init
    // Allocate memory and french fries for EdenMath
    // -------------------------------------------------------
    - (id)init
    {
        em 		= [[EMResponder alloc] init];
        undoManager = [[NSUndoManager alloc] init];
        return self;
    }

    // -------------------------------------------------------
    // (id)dealloc
    // Deallocate/free up memory used by Edenmath
    // -------------------------------------------------------
    - (void)dealloc
    {
        [em release];
        [undoManager release];
        [super dealloc];
    }

    @end