-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathFractView.j
More file actions
37 lines (26 loc) · 909 Bytes
/
FractView.j
File metadata and controls
37 lines (26 loc) · 909 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
This file is part of FrACT10, a vision test battery.
© 2021 Michael Bach, bach@uni-freiburg.de, <https://michaelbach.de>
FractView.j
*/
@import "AppController.j"
/**
This class is necessary to allow all subclasses of FractController to draw
using the delegate as established in the Interface Builder
Created by Bach on 18.07.2017.
*/
@implementation FractView : CPView {
@outlet CPWindowController drawingDelegate; //has a connection from view to delegate in IB
//SEL drawStimulusInRect; //not needed
}
/**
This is never called, does not need to be here. Initialisation is done by IB
*/
- (id) initWithFrame: (CGRect)frame { //console.info("FractView>initWithFrame");
self = [super initWithFrame:frame];
return self;
}
- (void) drawRect: (CGRect) dirtyRect { //console.info("FractView>drawRect");
[drawingDelegate drawStimulusInRect: dirtyRect forView: self];
}
@end