Revision: 14750
http://sourceforge.net/p/skim-app/code/14750
Author: hofman
Date: 2024-11-26 22:51:55 +0000 (Tue, 26 Nov 2024)
Log Message:
-----------
Setting a varibale to a block should copy the block to the heap.
Modified Paths:
--------------
trunk/SKDocumentController.m
Modified: trunk/SKDocumentController.m
===================================================================
--- trunk/SKDocumentController.m 2024-11-26 17:44:11 UTC (rev 14749)
+++ trunk/SKDocumentController.m 2024-11-26 22:51:55 UTC (rev 14750)
@@ -669,7 +669,7 @@
NSArray *nextURLs = count > 1 ? [urls subarrayWithRange:NSMakeRange(1,
count - 1)] : nil;
[self openDocumentWithContentsOfURL:fileURL display:NO
completionHandler:^(NSDocument *document, BOOL documentWasAlreadyOpen, NSError
*error){
if (document) {
- void (^block)(BOOL) = [^(BOOL success){
+ void (^block)(BOOL) = ^(BOOL success){
if (documentWasAlreadyOpen == NO)
[document close];
if (success && nextURLs)
@@ -676,7 +676,7 @@
[self printDocumentsWithContentsOfURLs:nextURLs
withSettings:printSettings showPrintPanels:showPrintPanels
completionHandler:completionHandler];
else
completionHandler(success);
- } copy];
+ };
[document printDocumentWithSettings:printSettings
showPrintPanel:showPrintPanels delegate:self
didPrintSelector:@selector(document:didPrint:contextInfo:) contextInfo:(void
*)CFBridgingRetain(block)];
} else {
if (error)
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit