summaryrefslogtreecommitdiff
path: root/bindings/objc/src/SwordBibleTextEntry.m
diff options
context:
space:
mode:
Diffstat (limited to 'bindings/objc/src/SwordBibleTextEntry.m')
-rw-r--r--bindings/objc/src/SwordBibleTextEntry.m11
1 files changed, 2 insertions, 9 deletions
diff --git a/bindings/objc/src/SwordBibleTextEntry.m b/bindings/objc/src/SwordBibleTextEntry.m
index 115a33c..b5a4a51 100644
--- a/bindings/objc/src/SwordBibleTextEntry.m
+++ b/bindings/objc/src/SwordBibleTextEntry.m
@@ -13,7 +13,7 @@
@synthesize preVerseHeading;
+ (id)textEntryForKey:(NSString *)aKey andText:(NSString *)aText {
- return [[[SwordBibleTextEntry alloc] initWithKey:aKey andText:aText] autorelease];
+ return [[SwordBibleTextEntry alloc] initWithKey:aKey andText:aText];
}
- (id)initWithKey:(NSString *)aKey andText:(NSString *)aText {
@@ -21,18 +21,11 @@
if(self) {
self.key = aKey;
self.text = aText;
+ self.preVerseHeading = @"";
}
return self;
}
-- (void)finalize {
- [super finalize];
-}
-- (void)dealloc {
- [self setPreVerseHeading:nil];
-
- [super dealloc];
-}
@end