blob: 3dec05dc18505024afe578994e8e79b4da05e3b3 (
plain)
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
|
//
// SwordModuleTextEntry.m
// MacSword2
//
// Created by Manfred Bergmann on 03.10.09.
// Copyright 2009 Software by MABE. All rights reserved.
//
#import "SwordModuleTextEntry.h"
#import "SwordKey.h"
@implementation SwordModuleTextEntry
@synthesize key;
@synthesize text;
+ (id)textEntryForKey:(NSString *)aKey andText:(NSString *)aText {
return [[[SwordModuleTextEntry alloc] initWithKey:aKey andText:aText] autorelease];
}
- (id)initWithKey:(NSString *)aKey andText:(NSString *)aText {
self = [super init];
if(self) {
self.key = aKey;
self.text = aText;
}
return self;
}
- (void)finalize {
[super finalize];
}
- (void)dealloc {
[self setKey:nil];
[self setText:nil];
[super dealloc];
}
@end
|