summaryrefslogtreecommitdiff
path: root/tikzit-old/src/osx/ParseErrorView.m
diff options
context:
space:
mode:
authorAleks Kissinger <aleks0@gmail.com>2018-01-04 15:58:21 +0100
committerAleks Kissinger <aleks0@gmail.com>2018-01-04 15:58:21 +0100
commit0421a96749743868554d44585050b1b3d04864d2 (patch)
tree02b0d4442bddee7c65bee0f875783b46610a4aef /tikzit-old/src/osx/ParseErrorView.m
parentfecef0396026b80c5aec736171e4842df7518af9 (diff)
removed website
Diffstat (limited to 'tikzit-old/src/osx/ParseErrorView.m')
-rw-r--r--tikzit-old/src/osx/ParseErrorView.m40
1 files changed, 40 insertions, 0 deletions
diff --git a/tikzit-old/src/osx/ParseErrorView.m b/tikzit-old/src/osx/ParseErrorView.m
new file mode 100644
index 0000000..83383f0
--- /dev/null
+++ b/tikzit-old/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 = CGRectMake(100,100,100,100);//NSMakeRect(0,0,image.size.width,image.size.height);
+ newLayer.position = CGPointMake(20,20);
+ //[self.layer addSublayer:newLayer];
+}
+
+@end