diff options
author | Johan Paulsson <gonz@users.sourceforge.net> | 2013-02-26 17:07:05 +0000 |
---|---|---|
committer | Johan Paulsson <gonz@users.sourceforge.net> | 2013-02-26 17:07:05 +0000 |
commit | 44fc6c6fc022b7262175a71a981ddc3969132ed5 (patch) | |
tree | 677ded4cf5d5c61ff0375b7025e77300b4382950 /tikzit/src/osx/ParseErrorView.m | |
parent | 814372e88b23ce7956b2322d6f382742e2277ea5 (diff) |
osx gui parsing errors
Diffstat (limited to 'tikzit/src/osx/ParseErrorView.m')
-rw-r--r-- | tikzit/src/osx/ParseErrorView.m | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/tikzit/src/osx/ParseErrorView.m b/tikzit/src/osx/ParseErrorView.m new file mode 100644 index 0000000..97b1b94 --- /dev/null +++ b/tikzit/src/osx/ParseErrorView.m @@ -0,0 +1,40 @@ +// +// ParseErrorView.m +// TikZiT +// +// Created by Karl Johan Paulsson on 27/01/2013. +// Copyright (c) 2013 Aleks Kissinger. All rights reserved. +// + +#import "ParseErrorView.h" + +@implementation ParseErrorView + +- (id)initWithFrame:(NSRect)frame +{ + self = [super initWithFrame:frame]; + if (self) { + // Initialization code here. + } + + return self; +} + +- (void)drawRect:(NSRect)dirtyRect +{ + // Drawing code here. +} + +- (void)awakeFromNib{ + self.layer = [CALayer layer]; + self.wantsLayer = YES; + CALayer *newLayer = [CALayer layer]; + self.layer.backgroundColor = [[NSColor controlColor] CGColor]; + //CGColorCreate(CGColorSpaceCreateDeviceRGB(), (CGFloat[]){ 1, .9, .64, 1 }); +// newLayer.backgroundColor = [NSColor redColor].CGColor; + newLayer.frame = NSMakeRect(100,100,100,100);//NSMakeRect(0,0,image.size.width,image.size.height); + newLayer.position = CGPointMake(20,20); + //[self.layer addSublayer:newLayer]; +} + +@end |