[sword-svn] r2620 - trunk/bindings/objc/src
mdbergmann at crosswire.org
mdbergmann at crosswire.org
Sun Apr 17 09:15:09 MST 2011
Author: mdbergmann
Date: 2011-04-17 09:15:08 -0700 (Sun, 17 Apr 2011)
New Revision: 2620
Modified:
trunk/bindings/objc/src/SwordInstallSourceController.h
trunk/bindings/objc/src/SwordInstallSourceController.mm
Log:
added convenience constructor for SwordInstallSourceController.
Modified: trunk/bindings/objc/src/SwordInstallSourceController.h
===================================================================
--- trunk/bindings/objc/src/SwordInstallSourceController.h 2011-03-22 21:03:13 UTC (rev 2619)
+++ trunk/bindings/objc/src/SwordInstallSourceController.h 2011-04-17 16:15:08 UTC (rev 2620)
@@ -59,6 +59,7 @@
// initialization
+ (SwordInstallSourceController *)defaultController;
++ (SwordInstallSourceController *)controllerWithPath:(NSString *)aPath;
/**
base path of the module installation
Modified: trunk/bindings/objc/src/SwordInstallSourceController.mm
===================================================================
--- trunk/bindings/objc/src/SwordInstallSourceController.mm 2011-03-22 21:03:13 UTC (rev 2619)
+++ trunk/bindings/objc/src/SwordInstallSourceController.mm 2011-04-17 16:15:08 UTC (rev 2620)
@@ -12,7 +12,6 @@
#import "SwordModule.h"
#include "installmgr.h"
-//#include "MyInstallMgr.h"
#ifdef __cplusplus
typedef std::map<sword::SWBuf, sword::InstallSource *> InstallSourceMap;
@@ -97,6 +96,10 @@
return singleton;
}
++ (SwordInstallSourceController *)controllerWithPath:(NSString *)aPath {
+ return [[[SwordInstallSourceController alloc] initWithPath:aPath createPath:YES] autorelease];
+}
+
/**
base path of the module installation
*/
More information about the sword-cvs
mailing list