Revision: 14017
http://sourceforge.net/p/skim-app/code/14017
Author: hofman
Date: 2024-01-20 22:23:42 +0000 (Sat, 20 Jan 2024)
Log Message:
-----------
make sure window controller is not prematurely released by ARC
Modified Paths:
--------------
trunk/NSWindowController_SKExtensions.m
Modified: trunk/NSWindowController_SKExtensions.m
===================================================================
--- trunk/NSWindowController_SKExtensions.m 2024-01-19 22:41:59 UTC (rev
14016)
+++ trunk/NSWindowController_SKExtensions.m 2024-01-20 22:23:42 UTC (rev
14017)
@@ -67,7 +67,7 @@
- (BOOL)isNoteWindowController { return NO; }
- (void)beginSheetModalForWindow:(NSWindow *)window completionHandler:(void
(^)(NSModalResponse result))handler {
- __block id strongSelf = self;
+ NS_VALID_UNTIL_END_OF_SCOPE __block id strongSelf = self;
[window beginSheet:[self window] completionHandler:^(NSModalResponse
result){
if (handler)
handler(result);
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