Revision: 29145
          http://sourceforge.net/p/bibdesk/svn/29145
Author:   hofman
Date:     2025-04-20 09:12:28 +0000 (Sun, 20 Apr 2025)
Log Message:
-----------
Support controller marker placeholders in content binding

Modified Paths:
--------------
    trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m

Modified: trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m
===================================================================
--- trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m      2025-04-20 
08:52:12 UTC (rev 29144)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m      2025-04-20 
09:12:28 UTC (rev 29145)
@@ -991,6 +991,21 @@
             [self setIconURLs:observedArray];
             [self reloadIcons];
         }
+        else {
+            NSDictionary *options = [_contentBinding 
objectForKey:NSOptionsKey];
+            if (observedArray == NSMultipleValuesMarker)
+                observedArray = [options 
objectForKey:NSMultipleValuesPlaceholderBindingOption];
+            else if (observedArray == NSNoSelectionMarker)
+                observedArray = [options 
objectForKey:NSNoSelectionPlaceholderBindingOption];
+            else if (observedArray == NSNotApplicableMarker)
+                observedArray = [options 
objectForKey:NSNotApplicablePlaceholderBindingOption];
+            if (observedArray) {
+                if ([observedArray isEqual:[NSNull null]])
+                    observedArray = nil;
+                [self setIconURLs:observedArray];
+                [self reloadIcons];
+            }
+        }
     }
     else {
         // not our context, so use super's implementation; documentation is 
totally wrong on this

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



_______________________________________________
Bibdesk-commit mailing list
Bibdesk-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to