Revision: 29595
http://sourceforge.net/p/bibdesk/svn/29595
Author: hofman
Date: 2025-09-17 14:13:46 +0000 (Wed, 17 Sep 2025)
Log Message:
-----------
open URLs with default browser
Modified Paths:
--------------
trunk/bibdesk/BDSKAppController.m
Modified: trunk/bibdesk/BDSKAppController.m
===================================================================
--- trunk/bibdesk/BDSKAppController.m 2025-09-17 09:27:32 UTC (rev 29594)
+++ trunk/bibdesk/BDSKAppController.m 2025-09-17 14:13:46 UTC (rev 29595)
@@ -83,6 +83,7 @@
#import <WebKit/WebKit.h>
#import "NSDate_BDSKExtensions.h"
#import "NSColor_BDSKExtensions.h"
+#import "NSWorkspace_BDSKExtensions.h"
#import <FileView/FileView.h>
#define WEB_URL @"https://bibdesk.sourceforge.io/"
@@ -487,7 +488,7 @@
} else if (theURL) {
- [[NSWorkspace sharedWorkspace] openURL:theURL];
+ [[NSWorkspace sharedWorkspace] openURLWithDefaultApp:theURL];
}
@@ -776,7 +777,7 @@
}
- (IBAction)visitWebSite:(id)sender{
- if(![[NSWorkspace sharedWorkspace] openURL:
+ if(![[NSWorkspace sharedWorkspace] openURLWithDefaultApp:
[NSURL URLWithString:WEB_URL]]){
NSBeep();
}
@@ -783,7 +784,7 @@
}
- (IBAction)visitWiki:(id)sender{
- if(![[NSWorkspace sharedWorkspace] openURL:
+ if(![[NSWorkspace sharedWorkspace] openURLWithDefaultApp:
[NSURL URLWithString:WIKI_URL]]){
NSBeep();
}
@@ -790,11 +791,11 @@
}
- (IBAction)reportBug:(id)sender {
- [[NSWorkspace sharedWorkspace] openURL:[NSURL
URLWithString:BUG_TRACKER_URL]];
+ [[NSWorkspace sharedWorkspace] openURLWithDefaultApp:[NSURL
URLWithString:BUG_TRACKER_URL]];
}
- (IBAction)requestFeature:(id)sender {
- [[NSWorkspace sharedWorkspace] openURL:[NSURL
URLWithString:RFE_TRACKER_URL]];
+ [[NSWorkspace sharedWorkspace] openURLWithDefaultApp:[NSURL
URLWithString:RFE_TRACKER_URL]];
}
- (IBAction)toggleShowingErrorPanel:(id)sender{
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