Revision: 30013
          http://sourceforge.net/p/bibdesk/svn/30013
Author:   hofman
Date:     2026-02-18 15:45:23 +0000 (Wed, 18 Feb 2026)
Log Message:
-----------
do not provide attributed string from formatters that don't add attributes

Modified Paths:
--------------
    trunk/bibdesk/BDSKCiteKeyFormatter.m
    trunk/bibdesk/BDSKFieldNameFormatter.m
    trunk/bibdesk/BDSKTypeNameFormatter.m

Modified: trunk/bibdesk/BDSKCiteKeyFormatter.m
===================================================================
--- trunk/bibdesk/BDSKCiteKeyFormatter.m        2026-02-17 22:47:37 UTC (rev 
30012)
+++ trunk/bibdesk/BDSKCiteKeyFormatter.m        2026-02-18 15:45:23 UTC (rev 
30013)
@@ -46,10 +46,6 @@
     return obj;
 }
 
-- (NSAttributedString *)attributedStringForObjectValue:(id)obj 
withDefaultAttributes:(NSDictionary *)attrs{
-    return [[NSAttributedString alloc] initWithString:[self 
stringForObjectValue:obj] attributes:attrs];
-}
-
 - (BOOL)getObjectValue:(id *)obj forString:(NSString *)string 
errorDescription:(NSString **)error{
     if(allowsEmptyString == NO && [NSString isEmptyString:string]){
         if(error) *error = NSLocalizedString(@"Empty cite keys are not 
allowed.", @"Error description");

Modified: trunk/bibdesk/BDSKFieldNameFormatter.m
===================================================================
--- trunk/bibdesk/BDSKFieldNameFormatter.m      2026-02-17 22:47:37 UTC (rev 
30012)
+++ trunk/bibdesk/BDSKFieldNameFormatter.m      2026-02-18 15:45:23 UTC (rev 
30013)
@@ -56,10 +56,6 @@
     return obj;
 }
 
-- (NSAttributedString *)attributedStringForObjectValue:(id)obj 
withDefaultAttributes:(NSDictionary *)attrs{
-    return [[NSAttributedString alloc] initWithString:[self 
stringForObjectValue:obj] attributes:attrs];
-}
-
 - (BOOL)getObjectValue:(id *)obj forString:(NSString *)string 
errorDescription:(NSString **)error{
     // first check for known field names, which may include special names 
containing spaces such as Cite Key, this is called on Leopard when 
auto-completing an item from the combobox
     if ([knownFieldNames containsObject:string]) {

Modified: trunk/bibdesk/BDSKTypeNameFormatter.m
===================================================================
--- trunk/bibdesk/BDSKTypeNameFormatter.m       2026-02-17 22:47:37 UTC (rev 
30012)
+++ trunk/bibdesk/BDSKTypeNameFormatter.m       2026-02-18 15:45:23 UTC (rev 
30013)
@@ -56,10 +56,6 @@
     return obj;
 }
 
-- (NSAttributedString *)attributedStringForObjectValue:(id)obj 
withDefaultAttributes:(NSDictionary *)attrs{
-    return [[NSAttributedString alloc] initWithString:[self 
stringForObjectValue:obj] attributes:attrs];
-}
-
 - (BOOL)getObjectValue:(id *)obj forString:(NSString *)string 
errorDescription:(NSString **)error{
     if (allowsEmptyString == NO && [NSString isEmptyString:string]){
         if(error) *error = NSLocalizedString(@"Empty type names are not 
allowed.", @"Error description");

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