[sword-svn] r2625 - trunk/bindings/objc/src
mdbergmann at crosswire.org
mdbergmann at crosswire.org
Sat May 7 15:26:51 MST 2011
Author: mdbergmann
Date: 2011-05-07 15:26:51 -0700 (Sat, 07 May 2011)
New Revision: 2625
Modified:
trunk/bindings/objc/src/SwordInstallSource.h
trunk/bindings/objc/src/SwordInstallSourceController.mm
Log:
minor changes to SwordInstallSource and Controller.
Modified: trunk/bindings/objc/src/SwordInstallSource.h
===================================================================
--- trunk/bindings/objc/src/SwordInstallSource.h 2011-04-26 20:09:23 UTC (rev 2624)
+++ trunk/bindings/objc/src/SwordInstallSource.h 2011-05-07 22:26:51 UTC (rev 2625)
@@ -7,7 +7,7 @@
//
#import <Foundation/Foundation.h>
-#import <SwordModule.h>
+#import "SwordModule.h"
#ifdef __cplusplus
#include <swmgr.h>
Modified: trunk/bindings/objc/src/SwordInstallSourceController.mm
===================================================================
--- trunk/bindings/objc/src/SwordInstallSourceController.mm 2011-04-26 20:09:23 UTC (rev 2624)
+++ trunk/bindings/objc/src/SwordInstallSourceController.mm 2011-05-07 22:26:51 UTC (rev 2625)
@@ -152,7 +152,11 @@
// init install sources
for(InstallSourceMap::iterator it = swInstallMgr->sources.begin(); it != swInstallMgr->sources.end(); it++) {
sword::InstallSource *sis = it->second;
+#if defined (TARGET_OS_MAC)
+ SwordInstallSource *is = [[SwordInstallSource alloc] initWithSource:(id)sis];
+#else
SwordInstallSource *is = [[SwordInstallSource alloc] initWithSource:(sword::InstallSource *)sis];
+#endif
[installSources setObject:is forKey:[is caption]];
// also add to list
More information about the sword-cvs
mailing list