-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathATComment.m
More file actions
58 lines (41 loc) · 774 Bytes
/
ATComment.m
File metadata and controls
58 lines (41 loc) · 774 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
//
// ATComment.m
// ATMail
//
// Created by ‚“c@–¾Žj on 06/03/19.
// Copyright 2006 __MyCompanyName__. All rights reserved.
//
#import "ATComment.h"
@implementation ATComment
- (id)init
{
[super init];
ccontent = [NSMutableArray new];
return self;
}
- (void)dealloc
{
[ccontent release];
[super dealloc];
}
- (void)add:(id)aToken
{
[[self value] addObject:aToken];
}
- (NSMutableArray *)value
{
return ccontent;
}
- (NSString *)stringValue
{
NSMutableString *aString = [NSMutableString string];
[self printOn:aString];
return aString;
}
- (void)printOn:(NSMutableString *)aString
{
[aString appendString:@"("];
[[self value] makeObjectsPerformSelector:@selector(printOn:) withObject:aString];
[aString appendString:@")"];
}
@end