diff --git a/MathPad/Base.lproj/MPDocument.xib b/MathPad/Base.lproj/MPDocument.xib index 3c4c28c..155c0fe 100644 --- a/MathPad/Base.lproj/MPDocument.xib +++ b/MathPad/Base.lproj/MPDocument.xib @@ -1,7 +1,7 @@ - + - + @@ -11,29 +11,34 @@ - + - - + + - + - - - - - - - - - + + + + + + + + - - + + + + + + + + diff --git a/MathPad/MPExpressionView.h b/MathPad/MPExpressionView.h new file mode 100644 index 0000000..364de6d --- /dev/null +++ b/MathPad/MPExpressionView.h @@ -0,0 +1,18 @@ +// +// MPExpressionView.h +// MathPad +// +// Created by Kim Wittenburg on 17.04.14. +// Copyright (c) 2014 Kim Wittenburg. All rights reserved. +// + +#import + +@class MPExpressionView, MPRange; + +@interface MPExpressionView : NSView + +@property (nonatomic, getter = isEditable) BOOL editable; +@property (nonatomic, strong) MPRange *selection; + +@end diff --git a/MathPad/MPExpressionView.m b/MathPad/MPExpressionView.m new file mode 100644 index 0000000..4e709e7 --- /dev/null +++ b/MathPad/MPExpressionView.m @@ -0,0 +1,29 @@ +// +// MPExpressionView.m +// MathPad +// +// Created by Kim Wittenburg on 17.04.14. +// Copyright (c) 2014 Kim Wittenburg. All rights reserved. +// + +#import "MPExpressionView.h" + +@implementation MPExpressionView + +- (id)initWithFrame:(NSRect)frame +{ + self = [super initWithFrame:frame]; + if (self) { + // Initialization code here. + } + return self; +} + +- (void)drawRect:(NSRect)dirtyRect +{ + [super drawRect:dirtyRect]; + + // Drawing code here. +} + +@end