Revision: 23953
http://sourceforge.net/p/bibdesk/svn/23953
Author: hofman
Date: 2019-07-06 17:58:38 +0000 (Sat, 06 Jul 2019)
Log Message:
-----------
don't add contextual submenus to choose recent files or URLs on newer systems,
they aren't accessible anymore
Modified Paths:
--------------
trunk/bibdesk/BDSKEditor.m
Modified: trunk/bibdesk/BDSKEditor.m
===================================================================
--- trunk/bibdesk/BDSKEditor.m 2019-07-06 11:39:41 UTC (rev 23952)
+++ trunk/bibdesk/BDSKEditor.m 2019-07-06 17:58:38 UTC (rev 23953)
@@ -1300,34 +1300,38 @@
keyEquivalent:@""];
[item setRepresentedObject:[NSNumber
numberWithUnsignedInteger:NSNotFound]];
- // get Safari recent downloads
- [menu addItemWithTitle:NSLocalizedString(@"Safari Recent Downloads",
@"Menu item title")
- submenuTitle:@"safariRecentDownloadsMenu"
- submenuDelegate:self];
+ if (RUNNING_BEFORE(10_12)) {
+ // get Safari recent downloads
+ [menu addItemWithTitle:NSLocalizedString(@"Safari Recent
Downloads", @"Menu item title")
+ submenuTitle:@"safariRecentDownloadsMenu"
+ submenuDelegate:self];
- // get recent downloads (Tiger only) by searching the system downloads
directory
- // should work for browsers other than Safari, if they use IC to
get/set the download directory
- // don't create this in the delegate method; it needs to start working
in the background
- if(submenu = [self recentDownloadsMenu]){
- [menu addItemWithTitle:NSLocalizedString(@"Link to Recent
Download", @"Menu item title") submenu:submenu];
+ // get recent downloads (Tiger only) by searching the system
downloads directory
+ // should work for browsers other than Safari, if they use IC to
get/set the download directory
+ // don't create this in the delegate method; it needs to start
working in the background
+ if(submenu = [self recentDownloadsMenu]){
+ [menu addItemWithTitle:NSLocalizedString(@"Link to Recent
Download", @"Menu item title") submenu:submenu];
+ }
+
+ // get Preview recent documents
+ [menu addItemWithTitle:NSLocalizedString(@"Link to Recently Opened
File", @"Menu item title")
+ submenuTitle:@"previewRecentDocumentsMenu"
+ submenuDelegate:self];
+
+ [menu addItem:[NSMenuItem separatorItem]];
}
-
- // get Preview recent documents
- [menu addItemWithTitle:NSLocalizedString(@"Link to Recently Opened
File", @"Menu item title")
- submenuTitle:@"previewRecentDocumentsMenu"
- submenuDelegate:self];
-
- [menu addItem:[NSMenuItem separatorItem]];
-
+
item = [menu addItemWithTitle:[NSLocalizedString(@"Choose URL", @"Menu
item title") stringByAppendingEllipsis]
action:@selector(chooseRemoteURL:)
keyEquivalent:@""];
[item setRepresentedObject:[NSNumber
numberWithUnsignedInteger:NSNotFound]];
- // get Safari recent URLs
- [menu addItemWithTitle:NSLocalizedString(@"Link to Download URL",
@"Menu item title")
- submenuTitle:@"safariRecentURLsMenu"
- submenuDelegate:self];
+ if (RUNNING_BEFORE(10_12)) {
+ // get Safari recent URLs
+ [menu addItemWithTitle:NSLocalizedString(@"Link to Download URL",
@"Menu item title")
+ submenuTitle:@"safariRecentURLsMenu"
+ submenuDelegate:self];
+ }
}
}
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