Revision: 27923
          http://sourceforge.net/p/bibdesk/svn/27923
Author:   hofman
Date:     2022-09-23 16:20:50 +0000 (Fri, 23 Sep 2022)
Log Message:
-----------
don't add options setter in mutable server info

Modified Paths:
--------------
    trunk/bibdesk/BDSKServerInfo.h
    trunk/bibdesk/BDSKServerInfo.m

Modified: trunk/bibdesk/BDSKServerInfo.h
===================================================================
--- trunk/bibdesk/BDSKServerInfo.h      2022-09-23 06:30:15 UTC (rev 27922)
+++ trunk/bibdesk/BDSKServerInfo.h      2022-09-23 16:20:50 UTC (rev 27923)
@@ -97,6 +97,5 @@
 @property (nonatomic, retain) NSString *resultEncoding;
 @property (nonatomic) BOOL removeDiacritics;
 @property (nonatomic, getter=isLite) BOOL lite;
-@property (nonatomic, copy) NSDictionary *options;
 
 @end

Modified: trunk/bibdesk/BDSKServerInfo.m
===================================================================
--- trunk/bibdesk/BDSKServerInfo.m      2022-09-23 06:30:15 UTC (rev 27922)
+++ trunk/bibdesk/BDSKServerInfo.m      2022-09-23 16:20:50 UTC (rev 27923)
@@ -283,9 +283,10 @@
                 [self setHost:DEFAULT_HOST];
             if (port == nil)
                 [self setPort:DEFAULT_PORT];
-            [self setOptions:[NSDictionary dictionary]];
+            [options release];
+            options = [[NSMutableDictionary alloc] init];
         } else {
-            [self setOptions:nil];
+            BDSKDESTROY(options);
         }
     }
 }
@@ -318,7 +319,7 @@
     if (options)
         [options setValue:value forKey:key];
     else if (value)
-        [self setOptions:[NSDictionary dictionaryWithObjectsAndKeys:value, 
key, nil]];
+        options = [[NSMutableDictionary alloc] initWithObjectsAndKeys:value, 
key, nil];
 }
 
 - (void)setPassword:(NSString *)newPassword;
@@ -351,12 +352,6 @@
     [self setOptionValue:(flag ? @"YES" : nil) forKey:LITE_KEY];
 }
 
-- (void)setOptions:(NSDictionary *)newOptions;
-{
-    [options autorelease];
-    options = [newOptions mutableCopy];
-}
-
 - (BOOL)validateHost:(id *)value error:(NSError **)error {
     NSString *string = *value;
     if ([self isZoom]) {

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to