Revision: 24177
          http://sourceforge.net/p/bibdesk/svn/24177
Author:   hofman
Date:     2019-09-01 21:04:09 +0000 (Sun, 01 Sep 2019)
Log Message:
-----------
post notification on finder label change

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

Modified: trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFinderLabel.m
===================================================================
--- trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFinderLabel.m   2019-09-01 
06:30:48 UTC (rev 24176)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFinderLabel.m   2019-09-01 
21:04:09 UTC (rev 24177)
@@ -547,7 +547,9 @@
 {
 #if defined(MAC_OS_X_VERSION_10_6) && MAC_OS_X_VERSION_MIN_REQUIRED >= 
MAC_OS_X_VERSION_10_6
     NSNumber *number = [NSNumber numberWithUnsignedInteger:label];
-    [aURL setResourceValue:number forKey:NSURLLabelNumberKey error:NULL];
+    if ([aURL setResourceValue:number forKey:NSURLLabelNumberKey error:NULL]) {
+        [[NSNotificationCenter defaultCenter] 
postNotificationName:FVFinderLabelDidChangeNotification object:aURL];
+    }
 #else
     FSRef fileRef;
     

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

Reply via email to