-
Notifications
You must be signed in to change notification settings - Fork 0
/
ATCFWS.m
60 lines (44 loc) · 780 Bytes
/
ATCFWS.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
//
// ATCFWS.m
// ATMail
//
// Created by ‚“c@–¾Žj on 06/04/10.
// Copyright 2006 __MyCompanyName__. All rights reserved.
//
#import "ATCFWS.h"
#import "ATFWS.h"
@implementation ATCFWS
- (id)init
{
[super init];
cfws = [NSMutableArray new];
return self;
}
- (void)dealloc
{
[cfws release];
[super dealloc];
}
- (void)add:(id)aToken
{
[cfws addObject:aToken];
}
- (BOOL)endWithFWS
{
return [[[self value] lastObject] isKindOfClass:[ATFWS class]];
}
- (NSArray *)value
{
return cfws;
}
- (NSString *)stringValue
{
NSMutableString *aString = [NSMutableString string];
[[self value] makeObjectsPerformSelector:@selector(printOn:) withObject:aString];
return aString;
}
- (NSString *)description
{
return [[self stringValue] autorelease];
}
@end