Revision: 30020
http://sourceforge.net/p/bibdesk/svn/30020
Author: hofman
Date: 2026-02-19 18:21:58 +0000 (Thu, 19 Feb 2026)
Log Message:
-----------
set editor in commit callback when called
Modified Paths:
--------------
trunk/bibdesk/BDSKEditor.m
Modified: trunk/bibdesk/BDSKEditor.m
===================================================================
--- trunk/bibdesk/BDSKEditor.m 2026-02-19 17:11:05 UTC (rev 30019)
+++ trunk/bibdesk/BDSKEditor.m 2026-02-19 18:21:58 UTC (rev 30020)
@@ -536,6 +536,8 @@
}
NSInvocation *invocation = (NSInvocation *)CFBridgingRelease(contextInfo);
if (invocation) {
+ __unsafe_unretained id editor = self;
+ [invocation setArgument:&editor atIndex:2];
[invocation setArgument:&didRecover atIndex:3];
[invocation invoke];
}
@@ -548,8 +550,6 @@
NSInvocation *invocation = nil;
if (delegate && didCommitSelector) {
invocation = [NSInvocation invocationWithTarget:delegate
selector:didCommitSelector];
- __unsafe_unretained id editor = self;
- [invocation setArgument:&editor atIndex:2];
[invocation setArgument:&contextInfo atIndex:4];
}
[self presentError:error modalForWindow:[self window] delegate:self
didPresentSelector:@selector(didPresentErrorWithRecovery:contextInfo:)
contextInfo:(void *)CFBridgingRetain(invocation)];
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