Revision: 14717
          http://sourceforge.net/p/skim-app/code/14717
Author:   hofman
Date:     2024-11-18 10:12:25 +0000 (Mon, 18 Nov 2024)
Log Message:
-----------
downlaod objects don't need to handle terminate as the controller already does 
that for them

Modified Paths:
--------------
    trunk/SKDownload.m

Modified: trunk/SKDownload.m
===================================================================
--- trunk/SKDownload.m  2024-11-18 09:52:11 UTC (rev 14716)
+++ trunk/SKDownload.m  2024-11-18 10:12:25 UTC (rev 14717)
@@ -53,7 +53,6 @@
 @property (nonatomic, strong) NSURL *fileURL;
 @property (nonatomic, strong) NSImage *fileIcon;
 @property (nonatomic) int64_t expectedContentLength, receivedContentLength;
-- (void)handleApplicationWillTerminateNotification:(NSNotification 
*)notification;
 @end
 
 
@@ -129,9 +128,6 @@
         receivedContentLength = 0;
         status = SKDownloadStatusUndefined;
         receivedResponse = NO;
-        
-        [[NSNotificationCenter defaultCenter] addObserver:self 
selector:@selector(handleApplicationWillTerminateNotification:)
-                                                     
name:NSApplicationWillTerminateNotification object:NSApp];
     }
     return self;
 }
@@ -165,10 +161,6 @@
     downloadTask = nil;
 }
 
-- (void)handleApplicationWillTerminateNotification:(NSNotification 
*)notification {
-    [self cancel];
-}
-
 #pragma mark Accessors
 
 - (NSDictionary *)properties {

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



_______________________________________________
Skim-app-commit mailing list
Skim-app-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to