forked from erkyrath/Inform7-IDE-Mac
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIFSectionalSection.m
77 lines (57 loc) · 1.12 KB
/
IFSectionalSection.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
//
// IFSectionalSection.m
// Inform-xc2
//
// Created by Andrew Hunter on 28/08/2006.
// Copyright 2006 Andrew Hunter. All rights reserved.
//
#import "IFSectionalSection.h"
@implementation IFSectionalSection
// = Initialisation =
- (void) dealloc {
[title release];
[tag autorelease];
[stringToRender release];
[super dealloc];
}
// = Setting/retrieving values =
- (void) setTitle: (NSString*) newTitle {
[title autorelease];
title = [newTitle copy];
}
- (void) setHeading: (BOOL) heading {
isHeading = heading;
}
- (void) setTag: (id) newTag {
[tag autorelease];
tag = [newTag retain];
}
- (void) setHasSubsections: (BOOL) subsections {
hasSubsections = subsections;
}
- (NSString*) title {
return title;
}
- (BOOL) isHeading {
return isHeading;
}
- (id) tag {
return tag;
}
- (BOOL) hasSubsections {
return hasSubsections;
}
- (void) setStringToRender: (NSString*) string {
[stringToRender release];
stringToRender = [string copy];
}
- (void) setBounds: (NSRect) newBounds {
bounds = newBounds;
}
- (NSString*) stringToRender {
return stringToRender;
}
- (NSRect) bounds {
return bounds;
}
@end