-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathVisorTermController.m
48 lines (36 loc) · 928 Bytes
/
VisorTermController.m
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
39
40
41
42
43
44
45
46
47
48
//
// VisorTermController.m
// Visor
//
// Created by Nicholas Jitkoff on 6/11/06.
// Copyright 2006 __MyCompanyName__. All rights reserved.
//
#import "VisorTermController.h"
@implementation VisorTermController
- (void)shell:(id)aShell childDidExitWithStatus:(int)status{
[super shell:aShell childDidExitWithStatus:status];
[delegate shell:aShell childDidExitWithStatus:status];
}
- (id) delegate { return [[delegate retain] autorelease]; }
- (void) setDelegate: (id) newDelegate
{
if (delegate != newDelegate) {
[delegate release];
delegate = [newDelegate retain];
}
}
//- (void)updateSize{
//
//}
- (void)updateSizeForRows:(unsigned int)rows columns:(unsigned int)cols{
[super updateSizeForRows:rows columns:cols];
[delegate windowResized];
// NSLog(@"updatefor %d",rows);
}
- (void) dealloc
{
NSLog(@"dealloc tcontr");
[self setDelegate: nil];
[super dealloc];
}
@end