[sword-svn] r2622 - trunk/bindings/objc/src

mdbergmann at crosswire.org mdbergmann at crosswire.org
Tue Apr 19 11:58:09 MST 2011


Author: mdbergmann
Date: 2011-04-19 11:58:09 -0700 (Tue, 19 Apr 2011)
New Revision: 2622

Modified:
   trunk/bindings/objc/src/SwordInstallSource.h
   trunk/bindings/objc/src/SwordInstallSource.mm
Log:
changed visibility of swordManager.

Modified: trunk/bindings/objc/src/SwordInstallSource.h
===================================================================
--- trunk/bindings/objc/src/SwordInstallSource.h	2011-04-19 17:14:09 UTC (rev 2621)
+++ trunk/bindings/objc/src/SwordInstallSource.h	2011-04-19 18:58:09 UTC (rev 2622)
@@ -26,10 +26,10 @@
     sword::InstallSource *swInstallSource;
 #endif
     
-    /** the sword manager for this source */
-    SwordManager *swordManager;
-    
     BOOL temporarySource;
+
+    /** the sword manager for this source */
+    SwordManager *swordManager;    
 }
 
 // init
@@ -68,10 +68,9 @@
 /** list module types */
 - (NSArray *)listModuleTypes;
 
-/**
- Returns the SwordManager attached to this SwordInstallSourceController
- */
+/** Returns the SwordManager attached to this SwordInstallSourceController */
 - (SwordManager *)swordManager;
+- (void)setSwordManager:(SwordManager *)swManager;
 
 #ifdef __cplusplus
 - (sword::InstallSource *)installSource;

Modified: trunk/bindings/objc/src/SwordInstallSource.mm
===================================================================
--- trunk/bindings/objc/src/SwordInstallSource.mm	2011-04-19 17:14:09 UTC (rev 2621)
+++ trunk/bindings/objc/src/SwordInstallSource.mm	2011-04-19 18:58:09 UTC (rev 2622)
@@ -10,27 +10,14 @@
 #import "SwordInstallSourceController.h"
 #import "SwordManager.h"
 
- at interface SwordInstallSource (PrivateAPI)
+ at interface SwordInstallSource ()
 
-- (void)setSwordManager:(SwordManager *)swManager;
-
 @end
 
- at implementation SwordInstallSource (PrivateAPI)
-
-- (void)setSwordManager:(SwordManager *)swManager {
-    [swManager retain];
-    [swordManager release];
-    swordManager = swManager;
-}
-
- at end
-
 @implementation SwordInstallSource
 
 // init
-- (id)init
-{
+- (id)init {
     self = [super init];
     if(self) {
         temporarySource = NO;
@@ -86,6 +73,12 @@
     [super dealloc];
 }
 
+- (void)setSwordManager:(SwordManager *)swManager {
+    [swManager retain];
+    [swordManager release];
+    swordManager = swManager;
+}
+
 // accessors
 - (NSString *)caption {
     const char *str = swInstallSource->caption;




More information about the sword-cvs mailing list