Revision: 29676
http://sourceforge.net/p/bibdesk/svn/29676
Author: hofman
Date: 2025-10-06 09:39:05 +0000 (Mon, 06 Oct 2025)
Log Message:
-----------
clear sharing submenu before copying Action toolbar item, as NSSharingService
does not conform to NSCoding
Modified Paths:
--------------
trunk/bibdesk/BibDocument_Toolbar.m
Modified: trunk/bibdesk/BibDocument_Toolbar.m
===================================================================
--- trunk/bibdesk/BibDocument_Toolbar.m 2025-10-06 09:00:02 UTC (rev 29675)
+++ trunk/bibdesk/BibDocument_Toolbar.m 2025-10-06 09:39:05 UTC (rev 29676)
@@ -206,6 +206,9 @@
- (NSToolbarItem *)toolbar:(NSToolbar *)toolbar
itemForItemIdentifier:(NSString *)itemIdent
willBeInsertedIntoToolbar:(BOOL)willBeInserted {
BDSKToolbarItem *item = [toolbarItems objectForKey:itemIdent];
if (willBeInserted == NO) {
+ // sharing menu cannot be archived, as NSSharingService does not
conform to NSCoding
+ if ([itemIdent isEqualToString:BibDocumentToolbarActionItemIdentifier])
+ [sharingMenu removeAllItems];
item = [item copy];
if ([[item view] isKindOfClass:[NSControl class]]) {
[[(NSControl *)[item view] cell]
setControlSize:NSControlSizeRegular];
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