Revision: 26748 http://sourceforge.net/p/bibdesk/svn/26748 Author: hofman Date: 2021-08-26 22:19:52 +0000 (Thu, 26 Aug 2021) Log Message: ----------- remove some irrelevant calls
Modified Paths: -------------- trunk/bibdesk/BDSKAddressTextField.m trunk/bibdesk/BDSKAddressTextFieldCell.m Modified: trunk/bibdesk/BDSKAddressTextField.m =================================================================== --- trunk/bibdesk/BDSKAddressTextField.m 2021-08-26 10:46:40 UTC (rev 26747) +++ trunk/bibdesk/BDSKAddressTextField.m 2021-08-26 22:19:52 UTC (rev 26748) @@ -73,8 +73,7 @@ [button setButtonType:NSMomentaryChangeButton]; [button setBordered:NO]; [button setImagePosition:NSImageOnly]; - [[button cell] setImageScaling:NSImageScaleProportionallyDown]; - [button setAutoresizingMask:NSViewMinXMargin | NSViewMaxYMargin]; + [button setImageScaling:NSImageScaleProportionallyDown]; [button setRefusesFirstResponder:YES]; [button setTranslatesAutoresizingMaskIntoConstraints:NO]; [button addConstraints:[NSArray arrayWithObjects: @@ -173,8 +172,4 @@ [super viewWillMoveToWindow:newWindow]; } -- (void)setKeyboardFocusRingNeedsDisplayInRect:(NSRect)rect { - return [super setKeyboardFocusRingNeedsDisplayInRect:[self bounds]]; -} - @end Modified: trunk/bibdesk/BDSKAddressTextFieldCell.m =================================================================== --- trunk/bibdesk/BDSKAddressTextFieldCell.m 2021-08-26 10:46:40 UTC (rev 26747) +++ trunk/bibdesk/BDSKAddressTextFieldCell.m 2021-08-26 22:19:52 UTC (rev 26748) @@ -102,6 +102,12 @@ return [super focusRingMaskBoundsForFrame:cellFrame inView:controlView]; } +- (void)drawFocusRingMaskWithFrame:(NSRect)cellFrame inView:(NSView *)controlView { + if ([self bezelStyle] != NSTextFieldRoundedBezel) + cellFrame = [self adjustedFrame:cellFrame inView:controlView]; + [super drawFocusRingMaskWithFrame:cellFrame inView:controlView]; +} + - (NSRect)drawingRectForBounds:(NSRect)aRect { if ([self bezelStyle] == NSTextFieldRoundedBezel) aRect = NSInsetRect(aRect, MARGIN_ROUNDED, 0.0); @@ -117,12 +123,6 @@ } -- (void)drawFocusRingMaskWithFrame:(NSRect)cellFrame inView:(NSView *)controlView { - if ([self bezelStyle] != NSTextFieldRoundedBezel) - cellFrame = [self adjustedFrame:cellFrame inView:controlView]; - [super drawFocusRingMaskWithFrame:cellFrame inView:controlView]; -} - - (void)editWithFrame:(NSRect)aRect inView:(NSView *)controlView editor:(NSText *)textObj delegate:(id)anObject event:(NSEvent *)theEvent { aRect = [self adjustedFrame:aRect inView:controlView]; [super editWithFrame:aRect inView:controlView editor:textObj delegate:anObject event:theEvent]; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ Bibdesk-commit mailing list Bibdesk-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bibdesk-commit