Revision: 28494
http://sourceforge.net/p/bibdesk/svn/28494
Author: hofman
Date: 2023-12-31 16:49:22 +0000 (Sun, 31 Dec 2023)
Log Message:
-----------
use weak and strong
Modified Paths:
--------------
trunk/bibdesk/BDSKSharingClient.m
trunk/bibdesk/BDSKSharingServer.m
trunk/bibdesk/BDSKStatusBar.m
Modified: trunk/bibdesk/BDSKSharingClient.m
===================================================================
--- trunk/bibdesk/BDSKSharingClient.m 2023-12-31 16:32:01 UTC (rev 28493)
+++ trunk/bibdesk/BDSKSharingClient.m 2023-12-31 16:49:22 UTC (rev 28494)
@@ -51,7 +51,7 @@
@interface BDSKAsyncSharingClient : BDSKAsyncObject <NSConnectionDelegate> {
#pragma clang diagnostic pop
NSNetService *service; // service with information about the
remote server (BDSKSharingServer)
- BDSKSharingClient *client; // the owner of the async client
(BDSKSharingClient)
+ __weak BDSKSharingClient *client; // the owner of the async client
(BDSKSharingClient)
id remoteServer; // proxy for the remote sharing server to
which we connect
BOOL needsAuthentication;
BOOL legacyServer;
Modified: trunk/bibdesk/BDSKSharingServer.m
===================================================================
--- trunk/bibdesk/BDSKSharingServer.m 2023-12-31 16:32:01 UTC (rev 28493)
+++ trunk/bibdesk/BDSKSharingServer.m 2023-12-31 16:49:22 UTC (rev 28494)
@@ -125,7 +125,7 @@
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
@interface BDSKAsyncSharingServer : BDSKAsyncObject <NSConnectionDelegate> {
- BDSKSharingServer *sharingServer;
+ __weak BDSKSharingServer *sharingServer;
NSString *sharingName;
NSConnection *connection;
NSMutableArray *connectedClients;
Modified: trunk/bibdesk/BDSKStatusBar.m
===================================================================
--- trunk/bibdesk/BDSKStatusBar.m 2023-12-31 16:32:01 UTC (rev 28493)
+++ trunk/bibdesk/BDSKStatusBar.m 2023-12-31 16:49:22 UTC (rev 28494)
@@ -52,7 +52,7 @@
NSImage *image;
NSString *identifier;
NSString *toolTip;
- id parent;
+ __weak id parent;
}
- (id)initWithIdentifier:(NSString *)anIdentnfier image:(NSImage *)anImage
toolTip:(NSString *)aToolTip parent:(id)aParent;
@property (nonatomic, readonly) NSImage *image;
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