Revision: 28085
http://sourceforge.net/p/bibdesk/svn/28085
Author: hofman
Date: 2022-11-27 10:27:51 +0000 (Sun, 27 Nov 2022)
Log Message:
-----------
use macor for column id
Modified Paths:
--------------
trunk/bibdesk/BDSKEditor.m
Modified: trunk/bibdesk/BDSKEditor.m
===================================================================
--- trunk/bibdesk/BDSKEditor.m 2022-11-27 07:30:15 UTC (rev 28084)
+++ trunk/bibdesk/BDSKEditor.m 2022-11-27 10:27:51 UTC (rev 28085)
@@ -94,8 +94,6 @@
#import "NSFont_BDSKExtensions.h"
#import "BDSKTextUndoManager.h"
-#define WEAK_NULL NULL
-
#define BDSKEditorFrameAutosaveName @"BDSKEditor window autosave name"
#define BDSKEditorMainSplitViewAutosaveName @"BDSKEditorMainSplitView"
#define BDSKEditorFileSplitViewAutosaveName @"BDSKEditorFileSplitView"
@@ -110,6 +108,8 @@
// offset of the table from the left window edge
#define TABLE_OFFSET 13.0
+#define FIELD_COLUMNID @"field"
+
// this was copied verbatim from a Finder saved search for all items of kind
document modified in the last week
static NSString * const recentDownloadsQuery = @"(kMDItemContentTypeTree =
'public.content') && (kMDItemFSContentChangeDate >= $time.today(-7)) &&
(kMDItemContentType != com.apple.mail.emlx) && (kMDItemContentType !=
public.vcard)";
@@ -3220,7 +3220,7 @@
NSTextField *textField = [view textField];
if ([tv isEqual:tableView]) {
NSString *field = [fields objectAtIndex:row];
- if ([tcID isEqualToString:@"field"]) {
+ if ([tcID isEqualToString:FIELD_COLUMNID]) {
value = [field localizedFieldName];
BOOL isDefault = [[[BDSKTypeManager sharedManager]
requiredFieldsForType:[publication pubType]] containsObject:field];
[textField setFont:[self fieldNameFont:isDefault]];
@@ -3378,7 +3378,7 @@
// align the cite key field with the form cells
if ([fields count] > 0) {
- NSTableColumn *tableColumn = [tableView
tableColumnWithIdentifier:@"field"];
+ NSTableColumn *tableColumn = [tableView
tableColumnWithIdentifier:FIELD_COLUMNID];
NSCell *cell = [tableColumn dataCell];
NSInteger row, numberOfRows = [fields count];
CGFloat width = [citeKeyTitle intrinsicContentSize].width + 4.0;
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