Revision: 29777
http://sourceforge.net/p/bibdesk/svn/29777
Author: hofman
Date: 2025-11-10 09:57:36 +0000 (Mon, 10 Nov 2025)
Log Message:
-----------
Use current rect edge enum values
Modified Paths:
--------------
trunk/bibdesk/BDSKAddressTextFieldCell.m
trunk/bibdesk/BDSKColorCell.m
trunk/bibdesk/BDSKComplexStringEditor.m
trunk/bibdesk/BDSKEdgeView.h
trunk/bibdesk/BDSKEditor.m
trunk/bibdesk/BDSKEditorTextField.m
trunk/bibdesk/BDSKErrorObjectController.m
trunk/bibdesk/BDSKFileContentSearchController.m
trunk/bibdesk/BDSKFindController.m
trunk/bibdesk/BDSKImagePopUpButtonCell.m
trunk/bibdesk/BDSKNotesOutlineView.m
trunk/bibdesk/BDSKSearchGroupViewController.m
trunk/bibdesk/BDSKSecureTextField.m
trunk/bibdesk/BDSKStatusBar.m
trunk/bibdesk/BDSKWebGroupViewController.m
trunk/bibdesk/BDSKZoomablePDFView.m
trunk/bibdesk/BibDocument.m
trunk/bibdesk/BibDocument_UI.m
Modified: trunk/bibdesk/BDSKAddressTextFieldCell.m
===================================================================
--- trunk/bibdesk/BDSKAddressTextFieldCell.m 2025-11-09 15:41:37 UTC (rev
29776)
+++ trunk/bibdesk/BDSKAddressTextFieldCell.m 2025-11-10 09:57:36 UTC (rev
29777)
@@ -60,7 +60,7 @@
- (NSRect)adjustedFrame:(NSRect)aRect inView:(NSView *)controlView {
if ([self bezelStyle] == NSTextFieldRoundedBezel)
return aRect;
- return BDSKShrinkRect(aRect, 1.0, [controlView isFlipped] ? NSMaxYEdge :
NSMinYEdge);
+ return BDSKShrinkRect(aRect, 1.0, [controlView isFlipped] ? NSRectEdgeMaxY
: NSRectEdgeMinY);
}
- (void)drawWithFrame:(NSRect)cellFrame inView:(NSView *)controlView {
@@ -74,8 +74,8 @@
NSRect outerShadowRect, innerShadowRect;
NSGradient *gradient = nil;
- outerShadowRect = BDSKSliceRect(cellFrame, 10.0, [controlView
isFlipped] ? NSMaxYEdge : NSMinYEdge);
- innerShadowRect = BDSKSliceRect(NSInsetRect(cellFrame, 1.0, 1.0),
10.0, [controlView isFlipped] ? NSMinYEdge : NSMaxYEdge);
+ outerShadowRect = BDSKSliceRect(cellFrame, 10.0, [controlView
isFlipped] ? NSRectEdgeMaxY : NSRectEdgeMinY);
+ innerShadowRect = BDSKSliceRect(NSInsetRect(cellFrame, 1.0, 1.0),
10.0, [controlView isFlipped] ? NSRectEdgeMinY : NSRectEdgeMaxY);
[[NSColor colorWithCalibratedWhite:1.0 alpha:0.394] set];
[[NSBezierPath bezierPathWithRoundedRect:outerShadowRect xRadius:3.6
yRadius:3.6] fill];
Modified: trunk/bibdesk/BDSKColorCell.m
===================================================================
--- trunk/bibdesk/BDSKColorCell.m 2025-11-09 15:41:37 UTC (rev 29776)
+++ trunk/bibdesk/BDSKColorCell.m 2025-11-10 09:57:36 UTC (rev 29777)
@@ -55,7 +55,7 @@
- (void)drawWithFrame:(NSRect)cellFrame inView:(NSView *)controlView {
NSColor *color = [self objectValue];
if ([color respondsToSelector:@selector(drawSwatchInRect:)])
- [color drawSwatchInRect:BDSKShrinkRect(cellFrame, 1.0, [controlView
isFlipped] ? NSMaxYEdge : NSMinYEdge)];
+ [color drawSwatchInRect:BDSKShrinkRect(cellFrame, 1.0, [controlView
isFlipped] ? NSRectEdgeMaxY : NSRectEdgeMinY)];
}
- (BOOL)isAccessibilityElement {
Modified: trunk/bibdesk/BDSKComplexStringEditor.m
===================================================================
--- trunk/bibdesk/BDSKComplexStringEditor.m 2025-11-09 15:41:37 UTC (rev
29776)
+++ trunk/bibdesk/BDSKComplexStringEditor.m 2025-11-10 09:57:36 UTC (rev
29777)
@@ -234,7 +234,7 @@
if (NO == [self getEnclosingView:&view scrollingView:&contentView])
return;
- NSRect lowerEdgeRect = BDSKSliceRect(NSInsetRect([view bounds],
-EDITOR_MARGIN_X, -EDITOR_MARGIN_Y), 1.0, [view isFlipped] ? NSMaxYEdge :
NSMinYEdge);
+ NSRect lowerEdgeRect = BDSKSliceRect(NSInsetRect([view bounds],
-EDITOR_MARGIN_X, -EDITOR_MARGIN_Y), 1.0, [view isFlipped] ? NSRectEdgeMaxY :
NSRectEdgeMinY);
if (contentView)
lowerEdgeRect = NSIntersectionRect(lowerEdgeRect, [view
convertRect:[contentView visibleRect] fromView:contentView]);
// see if the cell's lower edge is scrolled out of sight
Modified: trunk/bibdesk/BDSKEdgeView.h
===================================================================
--- trunk/bibdesk/BDSKEdgeView.h 2025-11-09 15:41:37 UTC (rev 29776)
+++ trunk/bibdesk/BDSKEdgeView.h 2025-11-10 09:57:36 UTC (rev 29777)
@@ -42,10 +42,10 @@
typedef NS_OPTIONS(NSUInteger, BDSKRectEdges) {
BDSKRectEdgesNone = 0,
- BDSKRectEdgesMinX = 1 << NSMinXEdge,
- BDSKRectEdgesMinY = 1 << NSMinYEdge,
- BDSKRectEdgesMaxX = 1 << NSMaxXEdge,
- BDSKRectEdgesMaxY = 1 << NSMaxYEdge,
+ BDSKRectEdgesMinX = 1 << NSRectEdgeMinX,
+ BDSKRectEdgesMinY = 1 << NSRectEdgeMinY,
+ BDSKRectEdgesMaxX = 1 << NSRectEdgeMaxX,
+ BDSKRectEdgesMaxY = 1 << NSRectEdgeMaxY,
BDSKRectEdgesEvery = BDSKRectEdgesMinX | BDSKRectEdgesMinY |
BDSKRectEdgesMaxX | BDSKRectEdgesMaxY,
};
Modified: trunk/bibdesk/BDSKEditor.m
===================================================================
--- trunk/bibdesk/BDSKEditor.m 2025-11-09 15:41:37 UTC (rev 29776)
+++ trunk/bibdesk/BDSKEditor.m 2025-11-10 09:57:36 UTC (rev 29777)
@@ -186,8 +186,8 @@
// we should have a document at this point, as the nib is not loaded
before -window is called, which shouldn't happen before the document shows us
BDSKASSERT([self document]);
- [[self window] setAutorecalculatesContentBorderThickness:NO
forEdge:NSMinYEdge];
- [[self window] setContentBorderThickness:NSHeight([statusBar frame])
forEdge:NSMinYEdge];
+ [[self window] setAutorecalculatesContentBorderThickness:NO
forEdge:NSRectEdgeMinY];
+ [[self window] setContentBorderThickness:NSHeight([statusBar frame])
forEdge:NSRectEdgeMinY];
if (editorFlags.isEditable)
[tableView setDoubleAction:@selector(raiseChangeFieldName:)];
@@ -209,7 +209,7 @@
BDSKEdgeView *edgeView = (BDSKEdgeView *)[[[collectionView
enclosingScrollView] superview] superview];
[edgeView setEdges:BDSKRectEdgesMaxY];
- [edgeView setColor:[edgeView colorForEdge:NSMinYEdge] forEdge:NSMaxYEdge];
+ [edgeView setColor:[edgeView colorForEdge:NSRectEdgeMinY]
forEdge:NSRectEdgeMaxY];
[edgeView setBackgroundColors:nil];
[edgeView setBackgroundView:nil];
Modified: trunk/bibdesk/BDSKEditorTextField.m
===================================================================
--- trunk/bibdesk/BDSKEditorTextField.m 2025-11-09 15:41:37 UTC (rev 29776)
+++ trunk/bibdesk/BDSKEditorTextField.m 2025-11-10 09:57:36 UTC (rev 29777)
@@ -98,7 +98,7 @@
[button removeFromSuperview];
} else if (object && [button superview] == nil) {
NSRect buttonRect = NSInsetRect([self bounds], BUTTON_MARGIN_X,
BUTTON_MARGIN_Y);
- buttonRect = BDSKSliceRect(buttonRect, NSHeight(buttonRect),
NSMaxXEdge);
+ buttonRect = BDSKSliceRect(buttonRect, NSHeight(buttonRect),
NSRectEdgeMaxX);
if (button == nil) {
button = [[BDSKDragButton alloc] initWithFrame:buttonRect];
[button setButtonType:NSButtonTypeMomentaryChange];
Modified: trunk/bibdesk/BDSKErrorObjectController.m
===================================================================
--- trunk/bibdesk/BDSKErrorObjectController.m 2025-11-09 15:41:37 UTC (rev
29776)
+++ trunk/bibdesk/BDSKErrorObjectController.m 2025-11-10 09:57:36 UTC (rev
29777)
@@ -113,8 +113,8 @@
{
[self setWindowFrameAutosaveName:BDSKErrorPanelFrameAutosaveName];
- [[self window] setAutorecalculatesContentBorderThickness:NO
forEdge:NSMinYEdge];
- [[self window] setContentBorderThickness:24.0 forEdge:NSMinYEdge];
+ [[self window] setAutorecalculatesContentBorderThickness:NO
forEdge:NSRectEdgeMinY];
+ [[self window] setContentBorderThickness:24.0 forEdge:NSRectEdgeMinY];
[errorTableView setDoubleAction:@selector(gotoError:)];
Modified: trunk/bibdesk/BDSKFileContentSearchController.m
===================================================================
--- trunk/bibdesk/BDSKFileContentSearchController.m 2025-11-09 15:41:37 UTC
(rev 29776)
+++ trunk/bibdesk/BDSKFileContentSearchController.m 2025-11-10 09:57:36 UTC
(rev 29777)
@@ -93,7 +93,7 @@
// Do custom view setup
[controlView setEdges:BDSKRectEdgesMinY];
- [controlView setColor:[controlView colorForEdge:NSMaxYEdge]
forEdge:NSMinYEdge];
+ [controlView setColor:[controlView colorForEdge:NSRectEdgeMaxY]
forEdge:NSRectEdgeMinY];
// we might remove this, so keep a retained reference
[tableView enclosingScrollView];
Modified: trunk/bibdesk/BDSKFindController.m
===================================================================
--- trunk/bibdesk/BDSKFindController.m 2025-11-09 15:41:37 UTC (rev 29776)
+++ trunk/bibdesk/BDSKFindController.m 2025-11-10 09:57:36 UTC (rev 29777)
@@ -127,8 +127,8 @@
[formatter setKnownFieldNames:fields];
[fieldToSearchComboBox setFormatter:formatter];
- [[self window] setAutorecalculatesContentBorderThickness:NO
forEdge:NSMinYEdge];
- [[self window] setContentBorderThickness:22.0 forEdge:NSMinYEdge];
+ [[self window] setAutorecalculatesContentBorderThickness:NO
forEdge:NSRectEdgeMinY];
+ [[self window] setContentBorderThickness:22.0 forEdge:NSRectEdgeMinY];
if (NO == [[NSUserDefaults standardUserDefaults]
boolForKey:BDSKShowFindStatusBarKey])
[statusBar toggleBelowView:controlsView animate:NO];
Modified: trunk/bibdesk/BDSKImagePopUpButtonCell.m
===================================================================
--- trunk/bibdesk/BDSKImagePopUpButtonCell.m 2025-11-09 15:41:37 UTC (rev
29776)
+++ trunk/bibdesk/BDSKImagePopUpButtonCell.m 2025-11-10 09:57:36 UTC (rev
29777)
@@ -123,7 +123,7 @@
- (NSRect)imageRectForBounds:(NSRect)rect {
if ([self arrowPosition] != NSPopUpNoArrow)
- return BDSKShrinkRect(rect, [self controlSize] == NSControlSizeRegular
? 7.0 : 5.0, NSMaxXEdge);
+ return BDSKShrinkRect(rect, [self controlSize] == NSControlSizeRegular
? 7.0 : 5.0, NSRectEdgeMaxX);
return rect;
}
@@ -131,7 +131,7 @@
[buttonCell setImage:[self numberOfItems] ? [[self itemAtIndex:0] image] :
nil];
[buttonCell drawWithFrame:[self imageRectForBounds:cellFrame]
inView:controlView];
if ([self arrowPosition] != NSPopUpNoArrow)
- [self
drawBorderAndBackgroundWithFrame:NSOffsetRect(BDSKSliceRect(cellFrame, 10.0,
NSMaxYEdge), [self controlSize] == NSControlSizeRegular ? 3.0 : 2.0, 0.0)
inView:controlView];
+ [self
drawBorderAndBackgroundWithFrame:NSOffsetRect(BDSKSliceRect(cellFrame, 10.0,
NSRectEdgeMaxY), [self controlSize] == NSControlSizeRegular ? 3.0 : 2.0, 0.0)
inView:controlView];
}
- (NSRect)focusRingMaskBoundsForFrame:(NSRect)cellFrame inView:(NSView
*)controlView {
Modified: trunk/bibdesk/BDSKNotesOutlineView.m
===================================================================
--- trunk/bibdesk/BDSKNotesOutlineView.m 2025-11-09 15:41:37 UTC (rev
29776)
+++ trunk/bibdesk/BDSKNotesOutlineView.m 2025-11-10 09:57:36 UTC (rev
29777)
@@ -83,7 +83,7 @@
NSInteger row = [self rowAtPoint:mouseLoc];
if (row != -1 && [[self delegate] outlineView:self
canResizeRowByItem:[self itemAtRow:row]]) {
- NSRect rect = BDSKSliceRect([self rectOfRow:row], 5.0, [self
isFlipped] ? NSMaxYEdge : NSMinYEdge);
+ NSRect rect = BDSKSliceRect([self rectOfRow:row], 5.0, [self
isFlipped] ? NSRectEdgeMaxY : NSRectEdgeMinY);
if (NSMouseInRect(mouseLoc, rect, [self isFlipped]) &&
NSEventTypeLeftMouseDragged == [[NSApp
nextEventMatchingMask:(NSEventMaskLeftMouseUp | NSEventMaskLeftMouseDragged)
untilDate:[NSDate distantFuture] inMode:NSEventTrackingRunLoopMode dequeue:NO]
type]) {
[self resizeRow:row withEvent:theEvent];
return;
Modified: trunk/bibdesk/BDSKSearchGroupViewController.m
===================================================================
--- trunk/bibdesk/BDSKSearchGroupViewController.m 2025-11-09 15:41:37 UTC
(rev 29776)
+++ trunk/bibdesk/BDSKSearchGroupViewController.m 2025-11-10 09:57:36 UTC
(rev 29777)
@@ -61,7 +61,7 @@
BDSKEdgeView *edgeView = (BDSKEdgeView *)[self view];
[edgeView setEdges:BDSKRectEdgesMinY];
- [edgeView setColor:[edgeView colorForEdge:NSMaxYEdge] forEdge:NSMinYEdge];
+ [edgeView setColor:[edgeView colorForEdge:NSRectEdgeMaxY]
forEdge:NSRectEdgeMinY];
}
- (void)updateSearchView {
Modified: trunk/bibdesk/BDSKSecureTextField.m
===================================================================
--- trunk/bibdesk/BDSKSecureTextField.m 2025-11-09 15:41:37 UTC (rev 29776)
+++ trunk/bibdesk/BDSKSecureTextField.m 2025-11-10 09:57:36 UTC (rev 29777)
@@ -219,7 +219,7 @@
- (NSRect)drawingRectForBounds:(NSRect)rect {
CGFloat margin = [self isBordered] || [self isBezeled] ? 1.0 : 5.0;
- return [super drawingRectForBounds:BDSKShrinkRect(rect, NSHeight(rect) +
margin, NSMaxXEdge)];
+ return [super drawingRectForBounds:BDSKShrinkRect(rect, NSHeight(rect) +
margin, NSRectEdgeMaxX)];
}
- (NSArray *)accessibilityChildren {
@@ -244,7 +244,7 @@
- (NSRect)drawingRectForBounds:(NSRect)rect {
CGFloat margin = [self isBordered] || [self isBezeled] ? 1.0 : 5.0;
- return [super drawingRectForBounds:BDSKShrinkRect(rect, NSHeight(rect) +
margin, NSMaxXEdge)];
+ return [super drawingRectForBounds:BDSKShrinkRect(rect, NSHeight(rect) +
margin, NSRectEdgeMaxX)];
}
- (NSArray *)accessibilityChildren {
Modified: trunk/bibdesk/BDSKStatusBar.m
===================================================================
--- trunk/bibdesk/BDSKStatusBar.m 2025-11-09 15:41:37 UTC (rev 29776)
+++ trunk/bibdesk/BDSKStatusBar.m 2025-11-10 09:57:36 UTC (rev 29777)
@@ -127,7 +127,7 @@
CGFloat fullRightMargin = rightMargin;
if (progressIndicator)
fullRightMargin += NSWidth([progressIndicator frame]) +
MARGIN_BETWEEN_ITEMS;
- NSRect rect = BDSKShrinkRect([self bounds], fullRightMargin,
NSMaxXEdge);
+ NSRect rect = BDSKShrinkRect([self bounds], fullRightMargin,
NSRectEdgeMaxX);
NSImage *image;
NSRect iconRect;
NSSize size;
@@ -135,8 +135,8 @@
for (BDSKStatusBarIcon *icon in icons) {
image = [icon image];
size = [self cellSizeForIcon:image];
- NSDivideRect(rect, &iconRect, &rect, size.width, NSMaxXEdge);
- rect = BDSKShrinkRect(rect, MARGIN_BETWEEN_ITEMS, NSMaxXEdge);
+ NSDivideRect(rect, &iconRect, &rect, size.width, NSRectEdgeMaxX);
+ rect = BDSKShrinkRect(rect, MARGIN_BETWEEN_ITEMS, NSRectEdgeMaxX);
iconRect = BDSKCenterRectVertically(iconRect, size.height, NO);
[iconCell setImage:image];
[iconCell drawWithFrame:iconRect inView:self];
@@ -169,7 +169,7 @@
- (void)setOffset:(CGFloat)offset {
[bottomConstraint setConstant:offset];
- [[self window] setContentBorderThickness:NSHeight([self frame]) + offset
forEdge:NSMinYEdge];
+ [[self window] setContentBorderThickness:NSHeight([self frame]) + offset
forEdge:NSRectEdgeMinY];
}
- (void)toggleBelowView:(NSView *)view animate:(BOOL)animate {
@@ -215,13 +215,13 @@
animating = NO;
}];
} else if (visible == NO) {
- [[self window] setContentBorderThickness:0.0 forEdge:NSMinYEdge];
+ [[self window] setContentBorderThickness:0.0 forEdge:NSRectEdgeMinY];
[self removeFromSuperview];
[NSLayoutConstraint activateConstraints:constraints];
[contentView layoutSubtreeIfNeeded];
bottomConstraint = [constraints lastObject];
} else {
- [[self window] setContentBorderThickness:statusHeight
forEdge:NSMinYEdge];
+ [[self window] setContentBorderThickness:statusHeight
forEdge:NSRectEdgeMinY];
}
}
@@ -319,7 +319,7 @@
CGFloat fullRightMargin = rightMargin;
if (progressIndicator)
fullRightMargin += NSWidth([progressIndicator frame]) +
MARGIN_BETWEEN_ITEMS;
- NSRect rect = BDSKShrinkRect([self bounds], fullRightMargin, NSMaxXEdge);
+ NSRect rect = BDSKShrinkRect([self bounds], fullRightMargin,
NSRectEdgeMaxX);
NSRect iconRect;
NSSize size;
@@ -327,8 +327,8 @@
for (BDSKStatusBarIcon *icon in icons) {
size = [self cellSizeForIcon:[icon image]];
- NSDivideRect(rect, &iconRect, &rect, size.width, NSMaxXEdge);
- rect = BDSKShrinkRect(rect, MARGIN_BETWEEN_ITEMS, NSMaxXEdge);
+ NSDivideRect(rect, &iconRect, &rect, size.width, NSRectEdgeMaxX);
+ rect = BDSKShrinkRect(rect, MARGIN_BETWEEN_ITEMS, NSRectEdgeMaxX);
iconRect = BDSKCenterRectVertically(iconRect, size.height, NO);
[self addToolTipRect:iconRect owner:self userData:(__bridge
void *)[icon identifier]];
}
@@ -436,14 +436,14 @@
CGFloat fullRightMargin = rightMargin;
if (progressIndicator)
fullRightMargin += NSWidth([progressIndicator frame]) +
MARGIN_BETWEEN_ITEMS;
- NSRect rect = BDSKShrinkRect([self bounds], fullRightMargin, NSMaxXEdge);
+ NSRect rect = BDSKShrinkRect([self bounds], fullRightMargin,
NSRectEdgeMaxX);
NSRect iconRect;
NSSize size;
for (BDSKStatusBarIcon *anIcon in icons) {
size = [self cellSizeForIcon:[anIcon image]];
- NSDivideRect(rect, &iconRect, &rect, size.width, NSMaxXEdge);
- rect = BDSKShrinkRect(rect, MARGIN_BETWEEN_ITEMS, NSMaxXEdge);
+ NSDivideRect(rect, &iconRect, &rect, size.width, NSRectEdgeMaxX);
+ rect = BDSKShrinkRect(rect, MARGIN_BETWEEN_ITEMS, NSRectEdgeMaxX);
if (anIcon == icon)
return [self
convertRectToScreen:BDSKCenterRectVertically(iconRect, size.height, NO)];
}
Modified: trunk/bibdesk/BDSKWebGroupViewController.m
===================================================================
--- trunk/bibdesk/BDSKWebGroupViewController.m 2025-11-09 15:41:37 UTC (rev
29776)
+++ trunk/bibdesk/BDSKWebGroupViewController.m 2025-11-10 09:57:36 UTC (rev
29777)
@@ -96,7 +96,7 @@
// navigation views
BDSKEdgeView *edgeView = (BDSKEdgeView *)[self view];
[edgeView setEdges:BDSKRectEdgesMinY];
- [edgeView setColor:[edgeView colorForEdge:NSMaxYEdge] forEdge:NSMinYEdge];
+ [edgeView setColor:[edgeView colorForEdge:NSRectEdgeMaxY]
forEdge:NSRectEdgeMinY];
[edgeView setReflectViewEnabled:NO];
NSMenu *menu = [[NSMenu alloc] init];
Modified: trunk/bibdesk/BDSKZoomablePDFView.m
===================================================================
--- trunk/bibdesk/BDSKZoomablePDFView.m 2025-11-09 15:41:37 UTC (rev 29776)
+++ trunk/bibdesk/BDSKZoomablePDFView.m 2025-11-10 09:57:36 UTC (rev 29777)
@@ -468,9 +468,9 @@
[[NSColor colorWithGenericGamma22White:isDark ? 0.262 : 0.981
alpha:1.0] setFill];
[NSBezierPath fillRect:rect];
[[NSColor colorWithGenericGamma22White:isHighContrast ? (isDark ?
0.686 : 0.785) : (isDark ? 0.499 : 0.905) alpha:1.0] setFill];
- [NSBezierPath fillRect:BDSKSliceRect(rect, 1.0, NSMaxYEdge)];
+ [NSBezierPath fillRect:BDSKSliceRect(rect, 1.0, NSRectEdgeMaxY)];
[[NSColor colorWithGenericGamma22White:isHighContrast ? (isDark ?
0.686 : 0.785) : (isDark ? 0.445 : 0.928) alpha:1.0] setFill];
- [NSBezierPath fillRect:BDSKSliceRect(rect, 1.0, NSMinYEdge)];
+ [NSBezierPath fillRect:BDSKSliceRect(rect, 1.0, NSRectEdgeMinY)];
} else {
[[NSColor colorWithGenericGamma22White:isDark ? 0.118 : 1.0 alpha:1.0]
setFill];
[NSBezierPath fillRect:rect];
Modified: trunk/bibdesk/BibDocument.m
===================================================================
--- trunk/bibdesk/BibDocument.m 2025-11-09 15:41:37 UTC (rev 29776)
+++ trunk/bibdesk/BibDocument.m 2025-11-10 09:57:36 UTC (rev 29777)
@@ -346,8 +346,8 @@
[self setupToolbar];
- [documentWindow setAutorecalculatesContentBorderThickness:NO
forEdge:NSMinYEdge];
- [documentWindow setContentBorderThickness:NSHeight([statusBar frame])
forEdge:NSMinYEdge];
+ [documentWindow setAutorecalculatesContentBorderThickness:NO
forEdge:NSRectEdgeMinY];
+ [documentWindow setContentBorderThickness:NSHeight([statusBar frame])
forEdge:NSRectEdgeMinY];
// First remove the statusbar if we should, as it affects proper resizing
of the window and splitViews
[statusBar setAlignment:NSTextAlignmentCenter];
Modified: trunk/bibdesk/BibDocument_UI.m
===================================================================
--- trunk/bibdesk/BibDocument_UI.m 2025-11-09 15:41:37 UTC (rev 29776)
+++ trunk/bibdesk/BibDocument_UI.m 2025-11-10 09:57:36 UTC (rev 29777)
@@ -913,7 +913,7 @@
[ratingButton setRating:[[shownPublications objectAtIndex:row]
ratingValueOfField:tcId]];
[[ratingButton cell] setRepresentedObject:tcId];
[ratingButton sizeToFit];
- NSView *view = [[NSView alloc]
initWithFrame:BDSKShrinkRect([ratingButton frame], -2.0 * margin, NSMaxXEdge)];
+ NSView *view = [[NSView alloc]
initWithFrame:BDSKShrinkRect([ratingButton frame], -2.0 * margin,
NSRectEdgeMaxX)];
[ratingButton setFrameOrigin:NSMakePoint(margin, 0.0)];
[view addSubview:ratingButton];
[menu insertItem:[NSMenuItem separatorItem] atIndex: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