Archived
1

Corrected MVC Implementation

This commit is contained in:
Kim Wittenburg
2015-01-08 21:58:15 +01:00
parent ee13abb8e7
commit 72abd9bc39
5 changed files with 34 additions and 38 deletions

View File

@@ -37,14 +37,6 @@
}
- (void)setExpressionView:(MPExpressionView *)expressionView
{
_expressionView = expressionView;
self.rootLayout = [[MPExpressionLayout alloc] initWithExpression:self parent:nil];
self.rootLayout.flipped = expressionView.flipped;
}
- (void)changedElementsInRangePath:(MPRangePath *)rangePath
replacementLength:(NSUInteger)replacementLength
{
@@ -58,8 +50,6 @@
}
[current clearCacheInRange:rangePath.rangeAtLastIndex
replacementLength:replacementLength];
[self.expressionView invalidateIntrinsicContentSize];
self.expressionView.needsDisplay = YES;
}
@end