-
Notifications
You must be signed in to change notification settings - Fork 2
/
FractView.j
38 lines (27 loc) · 964 Bytes
/
FractView.j
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
38
/*
This file is part of FrACT10, a vision test battery.
Copyright © 2021 Michael Bach, [email protected], <https://michaelbach.de>
FractView.j
*/
@import "HierarchyController.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 HierarchyController drawingDelegate; // has a connection from view to delegate in IB
SEL drawStimulusInRect;
}
/**
This is never called. Why is it here? And how can the drawRect work if never instantated?
Ah, now I understand: that 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