Revision: 29867
http://sourceforge.net/p/bibdesk/svn/29867
Author: hofman
Date: 2025-11-21 17:32:13 +0000 (Fri, 21 Nov 2025)
Log Message:
-----------
add some lightweight generics to view classes
Modified Paths:
--------------
trunk/bibdesk/BDSKFieldNameFormatter.h
trunk/bibdesk/BDSKGradientView.h
trunk/bibdesk/BDSKMainTableView.h
Modified: trunk/bibdesk/BDSKFieldNameFormatter.h
===================================================================
--- trunk/bibdesk/BDSKFieldNameFormatter.h 2025-11-21 17:19:43 UTC (rev
29866)
+++ trunk/bibdesk/BDSKFieldNameFormatter.h 2025-11-21 17:32:13 UTC (rev
29867)
@@ -43,11 +43,11 @@
NS_ASSUME_NONNULL_BEGIN
@interface BDSKFieldNameFormatter : NSFormatter {
- NSArray *knownFieldNames;
+ NSArray<NSString *> *knownFieldNames;
BOOL allowsEmptyString;
}
-@property (nonatomic, nullable, copy) NSArray *knownFieldNames;
+@property (nonatomic, nullable, copy) NSArray<NSString *> *knownFieldNames;
@property (nonatomic) BOOL allowsEmptyString;
@end
Modified: trunk/bibdesk/BDSKGradientView.h
===================================================================
--- trunk/bibdesk/BDSKGradientView.h 2025-11-21 17:19:43 UTC (rev 29866)
+++ trunk/bibdesk/BDSKGradientView.h 2025-11-21 17:32:13 UTC (rev 29867)
@@ -43,10 +43,10 @@
@interface BDSKGradientView : NSView
{
@private
- NSArray *backgroundColors;
+ NSArray<NSColor *> *backgroundColors;
}
-@property (nonatomic, nullable, copy) NSArray *backgroundColors;
+@property (nonatomic, nullable, copy) NSArray<NSColor *> *backgroundColors;
@end
Modified: trunk/bibdesk/BDSKMainTableView.h
===================================================================
--- trunk/bibdesk/BDSKMainTableView.h 2025-11-21 17:19:43 UTC (rev 29866)
+++ trunk/bibdesk/BDSKMainTableView.h 2025-11-21 17:32:13 UTC (rev 29867)
@@ -39,7 +39,7 @@
@protocol BDSKMainTableViewDelegate <BDSKTableViewDelegate>
@optional
-- (NSDictionary *)defaultColumnWidthsForTableView:(NSTableView *)aTableView;
+- (NSDictionary<NSString *, NSNumber *>
*)defaultColumnWidthsForTableView:(NSTableView *)aTableView;
- (void)tableView:(NSTableView *)aTableView
openParentForItemAtRow:(NSInteger)rowIndex;
- (nullable NSColor *)tableView:(NSTableView *)aTableView
highlightColorForRow:(NSInteger)rowIndex;
@end
@@ -63,7 +63,7 @@
@property (nonatomic, readonly) NSInteger lastMouseDownRow;
@property (nonatomic, readonly) NSInteger lastMouseDownColumn;
-- (void)setupTableColumnsWithIdentifiers:(NSArray *)identifiers;
+- (void)setupTableColumnsWithIdentifiers:(NSArray<NSString *> *)identifiers;
@property (nonatomic, readonly) NSMenu *columnsMenu;
- (void)addTableColumnWithIdentifier:(NSString *)identifier;
- (void)removeTableColumnWithIdentifier:(NSString *)identifier;
@@ -73,7 +73,7 @@
- (nullable NSTableCellView *)makeViewForTableColumn:(NSTableColumn
*)tableColumn owner:(nullable id)owner;
-@property (nonatomic, readonly) NSArray *tableColumnIdentifiers;
+@property (nonatomic, readonly) NSArray<NSString *> *tableColumnIdentifiers;
- (void)scrollRowToCenter:(NSUInteger)row;
- (void)alternateDelete:(nullable 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