Instantly share code, notes, and snippets.

Embed
What would you like to do?
- (void) createFigureAt: (id) aPoint on: (id) aDrawing
{
var frame = CGRectMake(aPoint.x, aPoint.y, 100, 50);
var newFigure = [SimpleRectangleFigure frame: frame];
[aDrawing addFigure: newFigure];
[self activateSelectionTool];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment