Revision: 28548
http://sourceforge.net/p/bibdesk/svn/28548
Author: hofman
Date: 2024-01-05 10:23:18 +0000 (Fri, 05 Jan 2024)
Log Message:
-----------
add some more __bridge
Modified Paths:
--------------
trunk/bibdesk/BDSKEditor.m
trunk/bibdesk/BDSKNotesSearchIndex.m
Modified: trunk/bibdesk/BDSKEditor.m
===================================================================
--- trunk/bibdesk/BDSKEditor.m 2024-01-05 10:21:29 UTC (rev 28547)
+++ trunk/bibdesk/BDSKEditor.m 2024-01-05 10:23:18 UTC (rev 28548)
@@ -2534,7 +2534,7 @@
if ([[BDSKPersistentSearch sharedSearch] hasQuery:queryString] == NO) {
[[BDSKPersistentSearch sharedSearch] addQuery:queryString
scopes:@[[[[NSFileManager defaultManager]
spotlightCacheFolderURLByCreating:NULL] path]]];
}
- isValid = ([[[BDSKPersistentSearch sharedSearch]
resultsForQuery:queryString attribute:(id)kMDItemPath] count] > 0);
+ isValid = ([[[BDSKPersistentSearch sharedSearch]
resultsForQuery:queryString attribute:(__bridge NSString *)kMDItemPath] count]
> 0);
} else {
isValid = YES;
}
@@ -2552,7 +2552,7 @@
if ([tableView rowForView:control] != -1) {
BibItem *pub = [[[publication owner] publications]
itemForCiteKey:aLink];
if (nil == pub) {
- NSString *path = [[[BDSKPersistentSearch sharedSearch]
resultsForQuery:queryStringWithCiteKey(aLink) attribute:(id)kMDItemPath]
firstObject];
+ NSString *path = [[[BDSKPersistentSearch sharedSearch]
resultsForQuery:queryStringWithCiteKey(aLink) attribute:(__bridge NSString
*)kMDItemPath] firstObject];
// if it was a valid key/link, we should definitely have a path,
but better make sure
if (path)
[[NSWorkspace sharedWorkspace] openURLWithDefaultApp:[NSURL
fileURLWithPath:path isDirectory:NO]];
Modified: trunk/bibdesk/BDSKNotesSearchIndex.m
===================================================================
--- trunk/bibdesk/BDSKNotesSearchIndex.m 2024-01-05 10:21:29 UTC (rev
28547)
+++ trunk/bibdesk/BDSKNotesSearchIndex.m 2024-01-05 10:23:18 UTC (rev
28548)
@@ -173,7 +173,7 @@
return;
CFMutableDataRef indexData = CFDataCreateMutable(NULL, 0);
- NSDictionary *options = @{(id)kSKMaximumTerms:@0};
+ NSDictionary *options = @{(__bridge id)kSKMaximumTerms:@0};
dispatch_sync(lockQueue, ^{
BDSKCFDESTROY(skIndex);
skIndex = SKIndexCreateWithMutableData(indexData, (__bridge
CFStringRef)BDSKSkimNotesString, kSKIndexInverted, (__bridge
CFDictionaryRef)options);
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