Revision: 30009
http://sourceforge.net/p/bibdesk/svn/30009
Author: hofman
Date: 2026-02-17 16:54:46 +0000 (Tue, 17 Feb 2026)
Log Message:
-----------
fix bindings for files in filer error window
Modified Paths:
--------------
trunk/bibdesk/BDSKFilePathTransformer.m
trunk/bibdesk/Base.lproj/AutoFile.xib
Modified: trunk/bibdesk/BDSKFilePathTransformer.m
===================================================================
--- trunk/bibdesk/BDSKFilePathTransformer.m 2026-02-17 15:40:58 UTC (rev
30008)
+++ trunk/bibdesk/BDSKFilePathTransformer.m 2026-02-17 16:54:46 UTC (rev
30009)
@@ -52,7 +52,8 @@
+ (BOOL)allowsReverseTransformation { return NO; }
- (id)transformedValue:(id)value {
- return [[value path] stringByAbbreviatingWithTildeInPath];
+ NSString *path = [value isKindOfClass:[NSString class]] ? value : [value
path];
+ return [path stringByAbbreviatingWithTildeInPath];
}
@end
Modified: trunk/bibdesk/Base.lproj/AutoFile.xib
===================================================================
--- trunk/bibdesk/Base.lproj/AutoFile.xib 2026-02-17 15:40:58 UTC (rev
30008)
+++ trunk/bibdesk/Base.lproj/AutoFile.xib 2026-02-17 16:54:46 UTC (rev
30009)
@@ -159,7 +159,7 @@
<string key="NSValueTransformerName">BDSKOldPathColor</string>
</dictionary>
</binding>
- <binding
destination="Fu3-OG-IFA" name="value" keyPath="objectValue" id="3RS-H9-ovY">
+ <binding
destination="Fu3-OG-IFA" name="value" keyPath="objectValue.oldPath"
id="wY4-Bq-huq">
<dictionary key="options">
<string key="NSValueTransformerName">BDSKFilePath</string>
</dictionary>
@@ -205,7 +205,7 @@
</constraints>
<imageCell
key="cell" refusesFirstResponder="YES" alignment="left"
imageScaling="proportionallyDown" image="NSActionTemplate" id="UAM-R9-5Rl"/>
<connections>
- <binding
destination="Fe0-jY-Vf0" name="value" keyPath="objectValue.newPath"
id="1vr-Gt-gnx">
+ <binding
destination="Fe0-jY-Vf0" name="value" keyPath="objectValue.path"
id="Ds9-4Y-OE6">
<dictionary key="options">
<string key="NSValueTransformerName">BDSKFileImage</string>
</dictionary>
@@ -225,7 +225,7 @@
<string key="NSValueTransformerName">BDSKNewPathColor</string>
</dictionary>
</binding>
- <binding
destination="Fe0-jY-Vf0" name="value" keyPath="objectValue" id="9i9-bW-HKp">
+ <binding
destination="Fe0-jY-Vf0" name="value" keyPath="objectValue.path"
id="P0y-1L-c8V">
<dictionary key="options">
<string key="NSValueTransformerName">BDSKFilePath</string>
</dictionary>
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