[sword-svn] r3414 - trunk/bindings/objc/src
mdbergmann at crosswire.org
mdbergmann at crosswire.org
Tue Mar 1 14:57:57 MST 2016
Author: mdbergmann
Date: 2016-03-01 14:57:57 -0700 (Tue, 01 Mar 2016)
New Revision: 3414
Modified:
trunk/bindings/objc/src/SwordBible.h
trunk/bindings/objc/src/SwordBible.mm
Log:
tests failed. fixed.
Modified: trunk/bindings/objc/src/SwordBible.h
===================================================================
--- trunk/bindings/objc/src/SwordBible.h 2016-03-01 21:48:15 UTC (rev 3413)
+++ trunk/bindings/objc/src/SwordBible.h 2016-03-01 21:57:57 UTC (rev 3414)
@@ -25,7 +25,9 @@
NewTestament
}Testament;
- at interface SwordBible : SwordModule
+ at interface SwordBible : SwordModule {
+ NSDictionary *_books;
+}
@property (strong, readwrite) NSDictionary *books;
Modified: trunk/bindings/objc/src/SwordBible.mm
===================================================================
--- trunk/bindings/objc/src/SwordBible.mm 2016-03-01 21:48:15 UTC (rev 3413)
+++ trunk/bindings/objc/src/SwordBible.mm 2016-03-01 21:57:57 UTC (rev 3414)
@@ -138,7 +138,7 @@
NSString *bookName = [bb name];
buf[bookName] = bb;
}
- self.books = [NSDictionary dictionaryWithDictionary:buf];
+ return [NSDictionary dictionaryWithDictionary:buf];
}
- (BOOL)containsBookNumber:(int)aBookNum {
@@ -151,14 +151,14 @@
}
- (NSDictionary *)books {
- if(self.books == nil) {
- [self buildBookList];
+ if(_books == nil) {
+ _books = [self buildBookList];
}
- return self.books;
+ return _books;
}
- (void)setBooks:(NSDictionary *)aBooks {
- self.books = aBooks;
+ _books = aBooks;
}
- (NSArray *)bookList {
More information about the sword-cvs
mailing list