Skip to content

Instantly share code, notes, and snippets.

@MaxGabriel
Created February 12, 2012 21:57
Show Gist options
  • Save MaxGabriel/1811048 to your computer and use it in GitHub Desktop.
Save MaxGabriel/1811048 to your computer and use it in GitHub Desktop.
CS 193p Fall 2011 Assignment 3 Graphing Calculator--Task 3: Delegation3
- (float)deltaY:(GraphView *)sender
{
float xVar = sender.xValue;
id xVar2 = [NSNumber numberWithFloat:xVar];
NSMutableDictionary *dict = [[NSMutableDictionary alloc] init];
[dict setValue:xVar2 forKey: @"x"];
float result = [CalculatorBrain runProgram:self.graphStack usingVariableValues:dict];
return result;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment