Revision: 29681
http://sourceforge.net/p/bibdesk/svn/29681
Author: hofman
Date: 2025-10-06 15:56:21 +0000 (Mon, 06 Oct 2025)
Log Message:
-----------
block enumeration
Modified Paths:
--------------
trunk/bibdesk/BibDocument_UI.m
Modified: trunk/bibdesk/BibDocument_UI.m
===================================================================
--- trunk/bibdesk/BibDocument_UI.m 2025-10-06 15:37:11 UTC (rev 29680)
+++ trunk/bibdesk/BibDocument_UI.m 2025-10-06 15:56:21 UTC (rev 29681)
@@ -782,18 +782,17 @@
- (void)updateCopyAsMenu:(NSMenu *)menu {
[menu removeAllItems];
NSArray *styles = [BDSKTemplate allStyleNames];
- NSUInteger i, count = [styles count];
- for (i = 0; i < count; i++) {
- NSMenuItem *item = [menu addItemWithTitle:[styles objectAtIndex:i]
action:@selector(copyAsAction:) keyEquivalent:@""];
+ [styles enumerateObjectsUsingBlock:^(NSString *style, NSUInteger i, BOOL
*stop){
+ NSMenuItem *item = [menu addItemWithTitle:style
action:@selector(copyAsAction:) keyEquivalent:@""];
[item setTarget:self];
[item setTag:BDSKDragCopyTemplate + i];
- }
+ }];
}
- (void)updateSharingMenu:(NSMenu *)menu {
// remove all items; then fill it with the items from the current document
[menu removeAllItems];
-
+
NSArray *services = [self sharingServices];
if ([services count] > 0) {
for (NSSharingService *service in services) {
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