Revision: 29635
http://sourceforge.net/p/bibdesk/svn/29635
Author: hofman
Date: 2025-09-27 16:32:12 +0000 (Sat, 27 Sep 2025)
Log Message:
-----------
use NSString category method instead of CFString method
Modified Paths:
--------------
trunk/bibdesk/BDSKPubMedParser.m
trunk/bibdesk/BDSKRISParser.m
trunk/bibdesk/BDSKReferParser.m
Modified: trunk/bibdesk/BDSKPubMedParser.m
===================================================================
--- trunk/bibdesk/BDSKPubMedParser.m 2025-09-27 16:27:02 UTC (rev 29634)
+++ trunk/bibdesk/BDSKPubMedParser.m 2025-09-27 16:32:12 UTC (rev 29635)
@@ -193,7 +193,7 @@
if(isAuthor){
newString = [[NSString alloc] initWithFormat:@"%@ and %@",
oldString, value];
// This next step isn't strictly necessary for splitting the
names, since the name parsing will do it for us, but you still see duplicate
whitespace when editing the author field
- NSString *collapsedWhitespaceString =
CFBridgingRelease(BDStringCreateByCollapsingAndTrimmingCharactersInSet(NULL,
(__bridge CFStringRef)newString, (__bridge CFCharacterSetRef)[NSCharacterSet
whitespaceCharacterSet]));
+ NSString *collapsedWhitespaceString = [newString
stringByCollapsingAndTrimmingCharactersInSet:[NSCharacterSet
whitespaceCharacterSet]];
newString = collapsedWhitespaceString;
} else if(([key isSingleValuedField] || [key isURLField]) && [key
isEqualToString:BDSKAddressString] == NO) {
// for single valued and URL fields, create a new field name
Modified: trunk/bibdesk/BDSKRISParser.m
===================================================================
--- trunk/bibdesk/BDSKRISParser.m 2025-09-27 16:27:02 UTC (rev 29634)
+++ trunk/bibdesk/BDSKRISParser.m 2025-09-27 16:32:12 UTC (rev 29635)
@@ -176,7 +176,7 @@
}else{
newString = [[NSString alloc]
initWithFormat:@"%@ and %@", oldString, value];
// This next step isn't strictly necessary for splitting the
names, since the name parsing will do it for us, but you still see duplicate
whitespace when editing the author field
- NSString *collapsedWhitespaceString =
CFBridgingRelease(BDStringCreateByCollapsingAndTrimmingCharactersInSet(NULL,
(__bridge CFStringRef)newString, (__bridge CFCharacterSetRef)[NSCharacterSet
whitespaceCharacterSet]));
+ NSString *collapsedWhitespaceString = [newString
stringByCollapsingAndTrimmingCharactersInSet:[NSCharacterSet
whitespaceCharacterSet]];
newString = collapsedWhitespaceString;
}
} else if(([key isSingleValuedField] || [key isURLField]) && [key
isEqualToString:BDSKAddressString] == NO && [key
isEqualToString:BDSKAnnoteString] == NO && [key
isEqualToString:BDSKAbstractString] == NO) {
Modified: trunk/bibdesk/BDSKReferParser.m
===================================================================
--- trunk/bibdesk/BDSKReferParser.m 2025-09-27 16:27:02 UTC (rev 29634)
+++ trunk/bibdesk/BDSKReferParser.m 2025-09-27 16:32:12 UTC (rev 29635)
@@ -102,7 +102,8 @@
if (isAuthor) {
newString = [[NSString alloc] initWithFormat:@"%@ and %@",
oldString, value];
// This next step isn't strictly necessary for splitting the
names, since the name parsing will do it for us, but you still see duplicate
whitespace when editing the author field
- NSString *collapsedWhitespaceString =
CFBridgingRelease(BDStringCreateByCollapsingAndTrimmingCharactersInSet(NULL,
(__bridge CFStringRef)newString, (__bridge CFCharacterSetRef)[NSCharacterSet
whitespaceCharacterSet]));
+
+ NSString *collapsedWhitespaceString = [newString
stringByCollapsingAndTrimmingCharactersInSet:[NSCharacterSet
whitespaceCharacterSet]];
newString = collapsedWhitespaceString;
} else if(([key isSingleValuedField] || [key isURLField]) && [key
isEqualToString:BDSKAddressString] == NO) {
// for single valued and URL fields, create a new field name
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